Skip to content

Commit c24cb59

Browse files
Update docs architecture with Seqera theme (#1011)
* All the changes
1 parent ab1d001 commit c24cb59

File tree

356 files changed

+1608
-11952
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

356 files changed

+1608
-11952
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ The Platform documentation is versioned and lives in the `platform-enterprise_ve
4444

4545
We have a script which can select a commit (or ideally release tag) to be used for publishing a new version on the docs website.
4646

47-
### Wave
48-
49-
Wave documentation is available as a Git submodule. Wave documentation is not versioned, and lives in the `wave_docs` directory. Changes to the Wave documentation must be made in the [Wave repo](https://github.com/seqeralabs/wave/tree/master/docs). To enable access to the Wave docs in the submodule, after cloning this repository you must run `git submodule update --init --recursive`.
50-
51-
To incorporate documentation changes from the Wave repository, run the following command: `git submodule update --recursive --remote`. This is mandatory, or published documentation cannot reflect any changes made to the Wave documentation since this command was last run. If you accidentally run the aforementioned command and want to revert, run the following command to revert to the previous commit ID for the Wave repository: `git submodule update --init`.
52-
5347
## Write and edit content
5448

5549
### Install pre-commit
@@ -179,5 +173,3 @@ They're the same except that they have different environment variable set in the
179173
This means that whenever you push to `master`, both deploy and both sites update.
180174

181175
The site's `netlify.toml` includes some redirects with `200` statuses that take links to missing content on the primary deployment to fetch data from the secondary deployment, without affecting the browser bar URL.
182-
183-
That should be it!

add-proxy-redirects.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env node
2+
const fs = require('fs');
3+
const path = require('path');
4+
5+
const proxyRedirects = `
6+
# Proxy rewrites - status 200 serves content from external URLs
7+
# Only proxy routes that are NOT already served by this Docusaurus site
8+
/platform-api/* https://seqera-docs-api.netlify.app/platform-api/:splat 200!
9+
/nextflow/* https://docs-migration.netlify.app/nextflow/:splat 200!
10+
`;
11+
12+
const redirectsPath = path.join(__dirname, 'build', '_redirects');
13+
fs.appendFileSync(redirectsPath, proxyRedirects);
14+
console.log('✅ Added proxy redirects to build/_redirects');

0 commit comments

Comments
 (0)