Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "mcp_docs/mcp_repo"]
path = mcp_docs/mcp_repo
url = https://github.com/seqeralabs/mcp.git
27 changes: 27 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,26 @@ export default async function createConfigAsync() {
},
];

const docs_mcp = [
"@docusaurus/plugin-content-docs",
{
id: "mcp",
routeBasePath: "/mcp",
path: "mcp_docs/mcp_repo/docs",
remarkPlugins: [
(await import("remark-code-import")).default,
(await require("remark-math")).default,
(await import("docusaurus-remark-plugin-tab-blocks")).default,
(await require("remark-yaml-to-table")).default,
],
rehypePlugins: [(await require("rehype-katex")).default],
editUrl: ({ docPath }) => {
return `https://github.com/seqeralabs/mcp/blob/master/docs/${docPath}`;
},
sidebarPath: "./mcp_docs/sidebar.json",
},
];

console.log(
"\n EXCLUDE_CHANGELOG: " + (process.env.EXCLUDE_CHANGELOG ? true : false),
"\n EXCLUDE_PLATFORM_ENTERPRISE: " +
Expand All @@ -161,6 +181,7 @@ export default async function createConfigAsync() {
"\n EXCLUDE_MULTIQC: " + (process.env.EXCLUDE_MULTIQC ? true : false),
"\n EXCLUDE_FUSION: " + (process.env.EXCLUDE_FUSION ? true : false),
"\n EXCLUDE_WAVE: " + (process.env.EXCLUDE_WAVE ? true : false),
"\n EXCLUDE_MCP: " + (process.env.EXCLUDE_MCP ? true : false),
"\n INCLUDE_NEXT: " + (process.env.INCLUDE_NEXT ? true : false),
);

Expand Down Expand Up @@ -265,6 +286,7 @@ export default async function createConfigAsync() {
process.env.EXCLUDE_MULTIQC ? null : docs_multiqc,
process.env.EXCLUDE_FUSION ? null : docs_fusion,
process.env.EXCLUDE_WAVE ? null : docs_wave,
process.env.EXCLUDE_MCP ? null : docs_mcp,

// Disable expensive bundler options.
// https://github.com/facebook/docusaurus/pull/11176
Expand Down Expand Up @@ -367,6 +389,11 @@ export default async function createConfigAsync() {
label: "Fusion",
position: "left",
},
{
to: "/mcp",
label: "MCP",
position: "left",
},
{
to: "https://training.nextflow.io/latest/",
html: 'Nextflow Training <svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU" style="margin-left:6px;opacity:0.6;"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg>',
Expand Down
1 change: 1 addition & 0 deletions mcp_docs/mcp_repo
Submodule mcp_repo added at 3b9f88
5 changes: 5 additions & 0 deletions mcp_docs/sidebar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sidebar": [
"index"
]
}
Loading