Source for the public documentation of the NASA-ISRO Synthetic Aperture Radar (NISAR) mission hosted at https://nisar-docs.asf.alaska.edu.
- Create a fork of https://github.com/ua-asf/nisar-docs/
- Clone the repository and navigate to the repository root
- Create and activate the conda environment
mamba env create -f environment.yml mamba activate nisar-docs - Run
myst startto render the website on your local machine - Configure previewing via GitHub Pages (optional)
- Enable GitHub Actions for your fork
- Enable GitHub Pages for your fork with Source = GitHub Actions
- Create two GitHub Actions variables:
BASE_URLwith a value of/nisar-docs(including the leading/)DOMAINwith a value ofhttps://{github_user_id}.github.io
- Push changes to your
mainbranch - Preview the rendered site at
https://{github_user_id}.github.io/nisar-docs/
- Make and commit your changes
- Push changes to your fork in GitHub
- Make sure your branch is synced and up to date with
ua-asf/nisar-docs:main - Open a pull request to
ua-asf/nisar-docs:main
Renaming the markdown file for an existing content page in nisar-docs changes the URL for that content, which can result in broken links. Myst does not have a builtin page redirect feature, so we implemented our own solution.
Important
These steps may change in the future, per #93. This section will be updated if a new approach is implemented.
To add a new page redirect, follow the steps below (for example, to redirect page /foo to /bar):
- Create a new subdirectory in
redirectswith the same name as the old page, e.g.redirects/foo. - Copy the
index.htmlfile from one of the existing subdirectories into your new subdirectory, then edit the file to update all occurrences of the redirect URL.- For example, copy
redirects/product-limitations/index.htmltoredirects/foo/index.html, then replace all references to/product-known-issuesin the new file with/bar.
- For example, copy
- Because the redirect feature depends on some custom build steps in the deploy workflow, you won't be able to test your new redirect locally. You'll need to push to a fork with GitHub Pages enabled (see Contributing) to verify redirect behavior.
- After the site for your fork has successfully rendered, confirm that
/fooredirects to/bar.


