User documentation for the data model and data submission to CancerModels.org.
CancerModels.org: Data submission
This docs site has been generated using Docusaurus and built by referring to ICGC-ARGO.
Documentation is written in Markdown and can be found in /docs.
The website, including the Docusaurus library, custom pages and components, and all styling is kept in /website.
To run the docs site requires the following:
- NodeJS version 12.13+
- This is done best using nvm (node version manager). A good summary of this process can be found here for your reference: https://gist.github.com/d2s/372b5943bce17b964a79
- Move into the website directory ...
cd website
- ...and install dependencies via npm:
npm ci
-
Setup Environment config:
Copy the file
/website/.env.example
to/website/.env
Note
This file contains the configuration for the Algolia search used on the site. It is not necessary to set correct values for this config to get the site to run. If you would like to have working Algolia search on while working on your local dev instance, reach out to another team member for the account values.
- Run the development server to see your edits live in the browser:
npm start
The site should open in a new page in your browser at the address: localhost:3000
After testing the changes locally, you can create a build by running
npm run build
You can see the build be running
npm run serve