Skip to content

Commit

Permalink
Merge pull request #715 from nextstrain/docs
Browse files Browse the repository at this point in the history
Docs
  • Loading branch information
jameshadfield committed Apr 23, 2019
2 parents 8ce51b4 + becd01a commit b011d4f
Show file tree
Hide file tree
Showing 36 changed files with 10,255 additions and 3,594 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Expand Up @@ -8,10 +8,6 @@ s3/
/local_narratives/ /local_narratives/
/narratives/ /narratives/


## docs
build/
i18n/

### OSX ### ### OSX ###
.DS_Store .DS_Store


Expand Down
3 changes: 3 additions & 0 deletions docs-src/.gitignore
@@ -0,0 +1,3 @@
## docs
build/
i18n/
38 changes: 25 additions & 13 deletions docs-src/README.md
@@ -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.

0 comments on commit b011d4f

Please sign in to comment.