Skip to content

nixpkgs-manual-mmdoc, nixos-manual-mmdoc: init#108063

Closed
ryantm wants to merge 1 commit intoNixOS:masterfrom
ryantm:minman
Closed

nixpkgs-manual-mmdoc, nixos-manual-mmdoc: init#108063
ryantm wants to merge 1 commit intoNixOS:masterfrom
ryantm:minman

Conversation

@ryantm
Copy link
Member

@ryantm ryantm commented Dec 31, 2020

This is a prototype Markdown manual renderer that has as few dependencies as possible. We might wish to have something like this because it would limit the build closure required for building the manuals, which is most important for NixOS.

The only dependencies are:

  • mmdoc - My C wrapper around cmark-gfm for making documentation
  • cmark-gfm - a C implementation of the CommonMark spec with additional GitHub-flavored Markdown extensions
  • xxd
  • fastJson
  • libzip

It uses assets from

  • fuse.js
  • highlight.js

Another benefit of this minimal approach is the manual can be rendered very quickly. cmark claims it can render War and Peace in 100 ms.

Try the Live demo!

Try it yourself

  • Checkout this branch
  • nix run .#nixpkgs-manual-mmdoc-watch
  • visit http://localhost:8000/ in your web browser

@ryantm ryantm requested review from flokli and jtojnar December 31, 2020 17:33
@ryantm ryantm marked this pull request as draft December 31, 2020 17:33
@ofborg ofborg bot added 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Dec 31, 2020
@ryantm

This comment has been minimized.

@ryantm

This comment has been minimized.

@ryantm

This comment has been minimized.

@ryantm

This comment has been minimized.

Copy link
Member Author

@ryantm ryantm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the edits here should be removed and it should be rebased on top of #108147

@ryantm

This comment has been minimized.

@ofborg ofborg bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 1, 2021
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 2, 2021
@ryantm
Copy link
Member Author

ryantm commented Jan 5, 2021

I've extracted the work into its own project now https://github.com/ryantm/mmdoc

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jan 5, 2021
@ryantm ryantm marked this pull request as ready for review September 10, 2023 11:21
@ryantm
Copy link
Member Author

ryantm commented Sep 10, 2023

@ofborg eval

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. and removed 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels Sep 10, 2023
@ryantm ryantm changed the title doc: add CommonMark nixpkgs manual doc: add nixpkgs manual split into multiple pages Sep 11, 2023
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixpkgs-and-nixos-manual-enchancmenets-userscript/34203/5

@ryantm
Copy link
Member Author

ryantm commented Oct 17, 2023

I plan to merge this in one week unless I get feedback on it.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-01-04-documentation-team-meeting-notes-102/37754/1

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-01-25-documentation-team-meeting-notes-106/38792/1

@github-actions github-actions bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Mar 15, 2024
@ofborg ofborg bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Mar 15, 2024
@infinisil
Copy link
Member

This is being discussed a bit in the docs Matrix room

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/help-wanted-planning-for-summer-of-nix-2025/47556/2

@ryantm
Copy link
Member Author

ryantm commented Nov 30, 2025

Closing this because I couldn't get buy-in from the nixpkgs documentation team to adopt a tool that is written in the C language, they'd much rather prefer to do some python thing but then never actually publish it years later I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.