Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f2c897a
feat: Integrate Expressive Code with site design
edmundmiller Sep 20, 2025
b40db46
feat: implement Expressive Code with line numbers and improved styling
edmundmiller Sep 20, 2025
32d1aa2
feat: Reorganize pipeline examples into clean directory structure
edmundmiller Sep 20, 2025
961c7d7
fix: Implement working text markers for code examples
edmundmiller Sep 21, 2025
9560fa5
fix: Remove unwanted margin from code blocks in examples
edmundmiller Sep 22, 2025
ef67bcb
feat: Enhance Expressive Code styling with site-consistent design
edmundmiller Sep 22, 2025
f8bb134
refactor: Extract terminal output to separate constant
edmundmiller Sep 22, 2025
9885c8e
feat: Add real pipeline execution and documentation structure
edmundmiller Sep 22, 2025
fcc7f10
feat: Implement working ANSI color support for terminal output
edmundmiller Sep 22, 2025
2f4c6fc
style: Improve code block typography hierarchy
edmundmiller Sep 22, 2025
0937ec6
feat: Add labeled text markers to pipeline example
edmundmiller Sep 22, 2025
2178a0c
fix: Add script labels and improve Nextflow code formatting
edmundmiller Sep 22, 2025
efbf1fb
chore: Remove Nextflow execution artifacts and development files
edmundmiller Sep 22, 2025
8d3eced
style: Set lineMarkerLabelColor to bright green for text markers
edmundmiller Sep 22, 2025
b86e818
feat: Enhance mixing scripting languages example with educational tex…
edmundmiller Sep 22, 2025
0aefaba
feat: Format RNA-seq pipeline with nextflow lint
edmundmiller Sep 22, 2025
911cb82
fix: Repair broken pipeline examples with structural improvements
edmundmiller Sep 22, 2025
02ae1bc
fix: Update all nextflow run commands to use correct _main.nf filename
edmundmiller Sep 22, 2025
086fe64
feat: Enhance BLAST pipeline example with educational text markers
edmundmiller Sep 22, 2025
9e5c15b
feat: update RNA-seq pipeline with enhanced structure and educational…
edmundmiller Sep 22, 2025
d7daef3
feat: update RNA-seq pipeline with actual GitHub code and proper text…
edmundmiller Sep 22, 2025
789fe18
feat: convert RNA-seq pipeline to standalone format and apply linting
edmundmiller Sep 22, 2025
f9bcfd8
feat: completely fix machine-learning-pipeline example with modern pa…
edmundmiller Sep 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ pnpm-debug.log*

# macOS-specific files
.DS_Store

# Nextflow execution artifacts
src/pages/examples/*/work/
src/pages/examples/*/.nextflow*
12 changes: 5 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { defineConfig } from "astro/config";
import remarkDescription from "astro-remark-description";
import remarkDirective from "remark-directive";
import sitemap from "@astrojs/sitemap";
import { transformerNotationDiff, transformerNotationFocus, transformerMetaHighlight } from "@shikijs/transformers";
import expressiveCode from "astro-expressive-code";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";

Expand All @@ -12,12 +14,6 @@ export default defineConfig({
site: "https://nextflow.io/",
outDir: "./output",
markdown: {
shikiConfig: {
// Choose from Shiki's built-in themes (or add your own)
// https://shiki.style/themes
theme: "light-plus",
transformers: [transformerNotationDiff(), transformerNotationFocus(), transformerMetaHighlight()],
},
remarkPlugins: [
remarkDirective,
admonitionsPlugin,
Expand Down Expand Up @@ -52,6 +48,8 @@ export default defineConfig({
],
},
integrations: [
expressiveCode(),
mdx(),
react(),
tailwind(),
sitemap({
Expand Down
85 changes: 85 additions & 0 deletions ec.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import { defineEcConfig } from "astro-expressive-code";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";

export default defineEcConfig({
// Use light theme for consistency with site design
themes: ["github-light"],

// Enable advanced features
plugins: [pluginLineNumbers()],

// Disable Expressive Code's built-in copy button and enable line numbers
defaultProps: {
showCopyToClipboardButton: false,
showLineNumbers: true,
},

// Comprehensive styling to match site's clean, minimal design
styleOverrides: {
// Core background and text styling - pure white like site
codeBackground: "#ffffff",
codeForeground: "#24292f", // GitHub light theme text color

// Typography - match site's exact monospace stack
codeFontFamily: "Menlo, Monaco, Consolas, 'Courier New', monospace",
codeFontSize: "1.25rem", // 20px - readable code size, smaller than before
codeLineHeight: "1.5",

// Borders - subtle gray matching site's container styling
borderColor: "#e5e7eb", // rgb(229, 231, 235) - light gray
borderWidth: "1px",
borderRadius: "0.375rem", // Tailwind rounded-md

// Text markers - use site's green color scheme for highlighting
textMarkers: {
// Use the site's actual light green color for highlighting
markBackground: "var(--nextflow-light-green)", // Direct use of site color
markBorderColor: "transparent", // Clean, no borders

// Make highlighting more visible but still clean
backgroundOpacity: "0.4", // More visible highlighting
borderOpacity: "0", // No border opacity

// Make text more readable on light green background
markForeground: "#1f2937", // Dark text for better contrast

// Label styling with bright green background
lineMarkerLabelColor: "#0dc09d", // Bright green for labels
},

// Frames - clean, minimal styling
frames: {
// Remove all shadows and heavy styling
shadowColor: "transparent",
frameBoxShadowCssValue: "none",

// Clean frame styling matching site containers
editorBackground: "#ffffff",
editorActiveTabBackground: "#f9fafb", // Very light gray for active tab
editorActiveTabBorderColor: "#e5e7eb", // Match border color
editorTabBarBackground: "#ffffff",
editorTabBarBorderColor: "#e5e7eb",

// Terminal-style frame styling
terminalBackground: "#ffffff",
terminalTitlebarBackground: "#f9fafb",
terminalTitlebarForeground: "#6b7280", // Subtle gray text
terminalTitlebarBorderColor: "#e5e7eb",
},

// Focus and selection states
focusBorder: "var(--nextflow-green)", // Use site's green for focus
codeSelectionBackground: "var(--nextflow-light-green)", // Use site's light green

// Scrollbar styling
scrollbarThumbColor: "#d1d5db", // Light gray
scrollbarThumbHoverColor: "#9ca3af", // Slightly darker on hover

// Ensure clean, minimal appearance throughout
uiSelectionBackground: "var(--nextflow-light-green)",
uiSelectionForeground: "#1f2937", // Dark text for contrast

// Larger UI text for better readability of frame titles
uiFontSize: "1.2rem", // Increased from default 0.9rem for more prominent titles
},
});
31 changes: 26 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,41 @@

[[redirects]]
from = "/example1.html"
to = "/basic-pipeline.html"
to = "/examples/basic-pipeline"

[[redirects]]
from = "/example2.html"
to = "/mixing-scripting-languages.html"
to = "/examples/mixing-scripting-languages"

[[redirects]]
from = "/example3.html"
to = "/blast-pipeline.html"
to = "/examples/blast-pipeline"

[[redirects]]
from = "/example4.html"
to = "/rna-seq-pipeline.html"
to = "/examples/rna-seq-pipeline"

[[redirects]]
from = "/example5.html"
to = "/machine-learning-pipeline.html"
to = "/examples/machine-learning-pipeline"

# Direct redirects from old .html files to new structure
[[redirects]]
from = "/basic-pipeline.html"
to = "/examples/basic-pipeline"

[[redirects]]
from = "/mixing-scripting-languages.html"
to = "/examples/mixing-scripting-languages"

[[redirects]]
from = "/blast-pipeline.html"
to = "/examples/blast-pipeline"

[[redirects]]
from = "/rna-seq-pipeline.html"
to = "/examples/rna-seq-pipeline"

[[redirects]]
from = "/machine-learning-pipeline.html"
to = "/examples/machine-learning-pipeline"
Loading
Loading