Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a442c5c
docs: add TUTORIAL.md
lima-limon-inc Sep 24, 2025
4b9f2a7
docs: remove TUTORIAL.md file in favor mdbook
lima-limon-inc Sep 24, 2025
4b71ed1
docs: design WIP
lima-limon-inc Sep 26, 2025
efca736
docs: design midenup
lima-limon-inc Sep 26, 2025
57e6f4b
docs: miden CLI wip
lima-limon-inc Sep 26, 2025
086b90f
feat: add mdbook deployment
lima-limon-inc Sep 26, 2025
bbef9c9
WIP: miden component interaction
lima-limon-inc Sep 26, 2025
f2db4d1
fix: add mdbook dependencies and change deployment branch to main
lima-limon-inc Oct 6, 2025
5588e6e
fix: link to miden tutorial
lima-limon-inc Oct 6, 2025
8a6a9e9
chore: add disclaimer regarding creating an account from a package
lima-limon-inc Oct 6, 2025
f11c494
feat: migrate to docusaurus
lima-limon-inc Oct 31, 2025
8af5cc9
feat: migrate index.md to docusaurus
lima-limon-inc Oct 31, 2025
43bcd69
feat: migrate design and getting started to docusaurus
lima-limon-inc Oct 31, 2025
63c08a5
feat: migrate remaining files to docusaurus
lima-limon-inc Oct 31, 2025
01be22b
feat: add remaining docusaurus files
lima-limon-inc Oct 31, 2025
04fb089
reword: reword component list
lima-limon-inc Oct 31, 2025
d97d257
feat: add docusaurus related CI files.
lima-limon-inc Oct 31, 2025
107c4c5
feat: update Makefile directives
lima-limon-inc Nov 3, 2025
453648f
feat: expand index.md and manifest.md
lima-limon-inc Nov 3, 2025
e344753
feat: update remaining files
lima-limon-inc Nov 3, 2025
651a4f7
chore: add updated stylesheet
Keinberger Nov 4, 2025
ac639e2
chore: add custom Docusaurus admonition component
Keinberger Nov 4, 2025
199716f
chore: fix formatting of pages for correct spacing
Keinberger Nov 4, 2025
413e42f
feat: add ">_ Terminal" header
lima-limon-inc Nov 7, 2025
1619c1a
feat: add a Makefile in docs/
lima-limon-inc Nov 7, 2025
ae6fcd5
fix: fix header #channel -> #channels
lima-limon-inc Nov 7, 2025
be4ef46
docs: reword installation.md
lima-limon-inc Nov 7, 2025
cda97ef
docs: update tutorial
lima-limon-inc Nov 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Taken from:
# https://github.com/0xMiden/miden-base/blob/next/.github/workflows/build-docs.yml
name: build-docs

# Limits workflow concurrency to only the latest commit in the PR.
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

on:
push:
branches: [main, next]
paths:
- "docs/**"
- ".github/workflows/build-docs.yml"
pull_request:
types: [opened, reopened, synchronize]
paths:
- "docs/**"
- ".github/workflows/build-docs.yml"
workflow_dispatch:

permissions:
contents: read

jobs:
build-docs:
name: Build Documentation
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: docs/package-lock.json

- name: Install dependencies
working-directory: ./docs
run: npm ci

- name: Build documentation
working-directory: ./docs
run: npm run build:dev
21 changes: 21 additions & 0 deletions .github/workflows/trigger-deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Trigger Aggregator Docs Rebuild

on:
push:
branches: [next]

jobs:
notify:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Send repository_dispatch to aggregator
uses: peter-evans/repository-dispatch@a628c95fd17070f003ea24579a56e6bc89b25766
with:
# PAT that can access the central aggregator repository
token: ${{ secrets.DOCS_REPO_TOKEN }}
repository: ${{ vars.DOCS_AGGREGATOR_REPO }}
event-type: rebuild
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ build: ## Builds with default parameters
.PHONY: build-release
build-release: ## Builds with release profile
cargo build --release

# --- docs ----------------------------------------------------------------------------------------

.PHONY: serve-docs
serve-docs: ## Builds docusaurus documentation & serves documentation site
$(MAKE) -C docs/
3 changes: 3 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.docusaurus/
build/
node_modules/
11 changes: 11 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --- internal docs -------------------------------------------------------------------------------
all: serve-docs

.PHONY: build-docs
build-docs:
npm ci
npm run build:dev

.PHONY: serve-docs
serve-docs: build-docs ## Builds docusaurus documentation & serves documentation site
npm run start:dev
129 changes: 129 additions & 0 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
import type { Config } from "@docusaurus/types";
import { themes as prismThemes } from "prism-react-renderer";

// If your content lives in docs/src, set DOCS_PATH='src'; else '.'
const DOCS_PATH =
process.env.DOCS_PATH || (require("fs").existsSync("src") ? "src" : ".");

const config: Config = {
title: "Docs Dev Preview",
url: "http://localhost:3000",
baseUrl: "/",
trailingSlash: false,

// Minimal classic preset: docs only, autogenerated sidebars, same math plugins as prod
presets: [
[
"classic",
{
docs: {
path: DOCS_PATH, // '../docs' is implied because we are already inside docs/
routeBasePath: "/", // mount docs at root for quick preview
sidebarPath: "./sidebars.ts",
remarkPlugins: [require("remark-math")],
rehypePlugins: [require("rehype-katex")],
versions: {
current: {
label: `unstable`,
},
},
},
blog: false,
pages: false,
theme: {
customCss: "./styles.css",
},
},
],
],

plugins: [
[
"@cmfcmf/docusaurus-search-local",
{
// whether to index docs pages
indexDocs: true,

// whether to index blog pages
indexBlog: false,

// whether to index static pages
indexPages: false,

// language of your documentation, see next section
language: "en",

// setting this to "none" will prevent the default CSS to be included. The default CSS
// comes from autocomplete-theme-classic, which you can read more about here:
// https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-theme-classic/
style: undefined,

// lunr.js-specific settings
lunr: {
// When indexing your documents, their content is split into "tokens".
// Text entered into the search box is also tokenized.
// This setting configures the separator used to determine where to split the text into tokens.
// By default, it splits the text at whitespace and dashes.
//
// Note: Does not work for "ja" and "th" languages, since these use a different tokenizer.
tokenizerSeparator: /[\s\-]+/,
// https://lunrjs.com/guides/customising.html#similarity-tuning
//
// This parameter controls the importance given to the length of a document and its fields. This
// value must be between 0 and 1, and by default it has a value of 0.75. Reducing this value
// reduces the effect of different length documents on a term's importance to that document.
b: 0.75,
// This controls how quickly the boost given by a common word reaches saturation. Increasing it
// will slow down the rate of saturation and lower values result in quicker saturation. The
// default value is 1.2. If the collection of documents being indexed have high occurrences
// of words that are not covered by a stop word filter, these words can quickly dominate any
// similarity calculation. In these cases, this value can be reduced to get more balanced results.
k1: 1.2,
// By default, we rank pages where the search term appears in the title higher than pages where
// the search term appears in just the text. This is done by "boosting" title matches with a
// higher value than content matches. The concrete boosting behavior can be controlled by changing
// the following settings.
titleBoost: 5,
contentBoost: 1,
tagsBoost: 3,
parentCategoriesBoost: 2, // Only used when indexing is enabled for categories
},
},
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
{
colorMode: {
defaultMode: "light",
disableSwitch: true,
},
prism: {
theme: prismThemes.oneLight,
darkTheme: prismThemes.oneDark,
additionalLanguages: ["rust", "solidity", "toml", "yaml"],
},
navbar: {
logo: {
src: "img/logo.png",
alt: "Miden Logo",
height: 240,
},
title: "MIDEN",
items: [
{
type: "docsVersionDropdown",
position: "left",
dropdownActiveClassDisabled: true,
},
{
href: "https://github.com/0xMiden/",
label: "GitHub",
position: "right",
},
],
},
},
};
export default config;
Loading
Loading