Skip to content

Quansight-Labs/cf-infra-docs

Repository files navigation

cf-infra-docs

Netlify Status

What is this

This site is the temporary home for the documentation that will be generated as part of the work being done for the CZI EOSS 5 grant for conda-forge. More details in the project management repository.

We are writing things in a way that would allow us to upstream parts of the site to conda-forge.org itself, if the need arises at any point.

For contributors

This website is built using Docusaurus 2, a modern static website generator.

Structure

Organization of the content

Docusaurus has different plugins for different kinds of content; namely blog posts, documentation and single pages.

Docusaurus parses its pages as MDX files (Markdown+JSX). It's up to you to decide how much JSX you use:

  • No JSX: it will be plain Markdown. Usually denoted with .md extensions.
  • Mostly Markdown, but with some JSX blocks. Usually denoted with .mdx extensions.
  • Only JSX. Use .js extensions.

The content is categorized in several directories, which use different plugins:

Navigation

  • For the top navigation bar, see themeConfig.navBar in docusaurus.config.js.
  • For the footer links, see themeConfig.footer in docusaurus.config.js.
  • The sidebars for /docs and /community are auto-generated by sidebarsDocs.js and sidebarsCommunity.js, respectively.

Theme and style

It uses the default theme, with custom CSS added in src/css/custom.css.

Some components and pages might have their own CSS modules (*.module.css).

Configuration file

The Docusaurus configuration is stored in docusaurus.config.js. Read its docs.

Local Development

With nodejs 16 or above:

npm run 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.

Build

npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Happens automatically through Netlify.