Skip to content

mu373/documentation

documentation

Available at https://minamiueda.com/docs/. This website is built using Docusaurus, a modern static website generator.

Usage

Installation

This project uses bun as the runtime.

# Install bun first: https://bun.sh/docs/installation
$ bun install

Converting notebooks

For converting Jupyter notebooks into Markdown, we use Python from uv.

# Install uv first: https://docs.astral.sh/uv/getting-started/installation/

# Install dependencies
$ uv sync
# Convert notebooks to markdown
# uv run scripts/convert_all_notebooks.py .
bun run nb-convert

# Copy extracted images from notebook to static directory.
bun run nb-copy-image

# Or run following. This runs nb-convert and nb-copy-image at once.
bun run nb-build

Local Development

$ bun 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

$ bun run build

This command generates static content into the build/docs directory and can be served using any static contents hosting service. You can change the target directory in package.json by changing the build command "docusaurus build --out-dir build/docs.

Writing documents

Frontmatter

---
title: 'Lorem Ipsum | Chapter 1' # Used in doc pages header and <title> tags
custom_title: Lorem Ipsum # Optional: Overrides `title` if set in doc pages
sidebar_label: Lorem # Optional: Label shown in sidebar and breadcrumbs
hide_title: false # Optional: You can hide the title (h1).
slug: lorem-ipsum # Custom URL
tags:
  - notes
sidebar_position: 1
custom_edit_url: "" # Optional: Use this field to customize "edit" or "view source" link. Set empty value to hide.
header: # Optional: Additional informations shown in the doc header. Accepts any key-value pair.
  - Class: Introduction to Computer Science
  - Year: 2025
---

Jupyter Notebooks

At the beginning of the notebook, include raw cell with:

# !chapter
---
chapter-title: My chapter title
---

Optional: If you want to split a single notebook in to multiple pages in the documentation website, include the raw cell in the following format at the beginning of each sections. # !pagebreak is required to split pages.

# !pagebreak
---
title: Introduction
slug: intro
---

Testing

Run tests on notebook conversion. This test is automated on GitHub Actions.

pytest tests/test-notebook-convert.py -v

License

This project uses multiple licenses (MIT and CC-BY) depending on the part of the repository. See LICENSE.md for details.

References

About

Documentations for computation and science. Built with Docusaurus.

Topics

Resources

License

MIT and 2 other licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.md
CC-BY-4.0
LICENSE-docs

Stars

Watchers

Forks

Contributors 2

  •  
  •