The information in the guide is primarily intended for ...
Fork this repository into your own account by clicking on the Fork button and then Create fork.
Make changes in branches on your own fork, then make pull requests on this repo. Following feedback, discussion, alterations, etc., authorized staff will merge the PRs.
You can preview your changes on your own device before submitting a PR. This may catch obvious formatting issues.
- Install a Conda distribution, such as Miniforge.
- Install software using conda/mamba. We have provided an
environment.ymlto make this step simpler. Run the commands below to install all dependencies in a separate environment, and then activate it. This keeps your website development separate from any other projects you're working on.
# You can replace `mamba` with `conda`.
mamba env create -f environment.yml
# Now you can activate the environment.
# You can use `mamba activate` or `conda activate`, but these require that you
# have run `mamba init` or `conda init`, which modifies your shell.
mamba activate discovery-handbook
# Alternatively, you can activate without the `init` step mentioned above.
source activate discovery-handbookActivate this environment whenever you start a new terminal to work on this website. Otherwise your terminal may report that it cannot find myst or its dependencies.
- Run
myst initin the working directory. When prompted, let the command runmyst startfor you to generate a preview. myst will display a localhost URL where the site preview is running, such as http://localhost:3000. Open this URL in your browser.
You can also run myst build to create static HTML (in the _build directory) without automatically displaying it.
Note: Do not commit the files in _build to the repository.