This website is built using Docusaurus 2, a modern static website generator.
- not using blog - we have deleted the
blog
directory & disabled the blog plugin - we are using typescript, which has some uniqueness within docusaurus
Embedding dynamic content? We use MDX-Embeddocs/intro.mdx shows an example with youtube- Don't use mdx. It breaks the CMS.
- Full Editing functionality is possible by following
Installation
,Local Development
andBuild
steps below. - CMS based editing is possible via Netlify CMS, though there are some functionality gaps / tradeoffs. See
Partial Editing with Netlify CMS
below.
yarn
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Builds are automatic via CI/CD pipeline using fleek.
PRs are automatically deployed on fleek.
The contract documentation is generated from the olympus-v3
repository. To update the pinned commit and regenerate the documentation:
-
Update the revision in
foundry.toml
: Openfoundry.toml
and update therev
field for the olympus-v3 dependency to the desired commit hash. -
Update the revision in
soldeer.lock
: Opensoldeer.lock
and update theversion
field for the olympus-v3 dependency to match the same commit hash. -
Regenerate the contract documentation:
yarn run build:contracts
-
Commit the changes:
git add foundry.toml soldeer.lock git commit -m "Update contract documentation to latest olympus-v3 commit"
The yarn run build:contracts
command (which runs contracts.sh
):
- Builds the olympus-v3 project
- Generates forge documentation
- Cleans up unnecessary directories (scripts, tests)
- Fixes markdown issues and broken links
- Updates the contract documentation in
docs/contracts/02_docs/
- Netlify CMS is available at https://admin-docs.olympusdao.finance/.
- Netlify CMS is served from the
netlify-cms
branch. All changes to Netlify CMS config happen instatic/admin
. If you make a change here you need to push that change first tomain
and then merge that change down tonetlify-cms
branch. - it requires login with github credentials
- all changes will read/write against the
main
branch - all submitted changes will be submitted as pull requests
- Netlify CMS ONLY READS and WRITES DATA to/from github... it does not read/write any local changes you might have on your local machine
- Netlify CMS does not parse mdx files, so none of the mdx files appear
- Netlify CMS parses each docs directory separately, so a new directory would require updates to config.yml