Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #715 from nextstrain/docs
Docs
- Loading branch information
Showing
36 changed files
with
10,255 additions
and
3,594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
## docs | |||
build/ | |||
i18n/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,27 +1,39 @@ | |||
# Auspice Documentation | # Auspice Documentation | ||
|
|
||
This folder contains the static site generator and the markdown files which form the auspice documentation website. | This folder contains the static site generator and the markdown files which form the auspice documentation website. | ||
This is currently designed to be served from github pages. | This is currently designed to be served from GitHub pages using the `auspice/docs` folder. | ||
[Docusaurus](https://docusaurus.io/) is used to generate the static site. | [Docusaurus](https://docusaurus.io/) is used to generate the static site. | ||
|
|
||
### Folder structure: | ### Folder structure of `auspice/docs-src/` | ||
* `README.md` this file | * `README.md` this file | ||
* `docs/` contains the raw markdown files. The filenames (and directory names) will be used as URLS. | * `docs/` contains the raw markdown files. The filenames (and directory names) will be used as URLs. | ||
New pages here should also be added to `sidebars.json`. | |||
* `website/` the files needed to build the website. | * `website/` the files needed to build the website. | ||
* `website/sidebars.json` define the doc links in the sidebar | * `./sidebars.json` define the doc links in the sidebar | ||
* `website/pages/index.js` the splash page | * `./pages/index.js` the splash page | ||
* `./siteConfig.js` docusarus configuration - [see docs here](https://docusaurus.io/docs/en/site-config) | |||
|
|
||
### How to develop: |
|
||
## How to run | |||
|
|||
All commands run from this directory (`docs-src`). | |||
|
|||
#### Installing dependencies | |||
```bash | ```bash | ||
cd website | npm install | ||
npx docusaurus-start | |||
``` | ``` | ||
|
|
||
### How to deploy: | #### Developing (live reloading etc): | ||
```bash | |||
npm run develop | |||
``` | |||
|
|||
#### (re-)build the static site | |||
|
|
||
```bash | ```bash | ||
cd website | npm run build | ||
npx docusaurus-build # creates website/build/* | |||
cd .. | |||
cp -r website/build/auspice/* ../docs | |||
``` | ``` | ||
> This command will modify the files in `../docs/` which is where the GitHub pages site is served from. | |||
#### Deploy | |||
Once changes are merged into the master branch and pushed to GitHub the changes will be live. |
Oops, something went wrong.