Learn, explore, and create open source practices.
UVM
TODO
To work on the Open Resource Library (ORL) locally, you must have Bun installed, as it is the runtime and package manager of choice for the ORL.
bun ibun startThis will open a browser window to localhost:3000, which will be updated live with any changes you make to the library.
(Note: you may append --no-open to this command to prevent the opening of a new browser window)
bun run buildbun serveThis also open a browser window to localhost:3000 which will allow you to preview what the site will look like in production.
(As with the dev server, --no-open may be provided to prevent the opening of a new browser window)
The actual content of the library is stored as markdown files within the docs directory.
Each subdirectory of docs acts as a category, which then gets auto-generated into groups in the sidebar.
For categories, the _category_.yml file may be used to modify a number of metadata options.
Namely, the category's position within the sidebar with the position key, label with the label key, whether it starts collapsed with the collapsed key, and more.
Each page also has metadata you can modify using the markdown file's front matter.
By default, the page title in the browser and sidebar will be taken from the first h1 or # header on the page,
these values can be modified with the title and sidebar_label keys respectively.
A page's position on the sidebar can also be modified with the sidebar_position key, similar to how category positioning works.
That covers the basics of editing the ORL, but Docusaurus is an extensive tool with many so-far unused features. If you would like to learn more about Docusaurus and it's features, you can do so at the Docusaurus docs.