feat($lib/docs): introduce new docs pipeline #8
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: the-distro/floral.systems#8
Loading…
Reference in a new issue
No description provided.
Delete branch "ckie/init/docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TODO for merge
.petalpkgs
file tree.@tailwindcss/typography
@ -0,0 +11,4 @@
import type { Node, Root, Code } from "mdast";
import type { Plugin } from "unified";
export const remarkInclude: Plugin<[], Root> = ({ resolveFrom }: { resolveFrom: string }) => {
eventually fix TS complaints
remark-include.ts 14 14 error 2322 Type '({ resolveFrom }: { resolveFrom: string; }) => (tree: any, file: any) => any' is not assignable to type 'Plugin<[], Root>'.
@ -0,0 +22,4 @@
// !== "options" because those are special, parsed from options.json:
// https://github.com/NixOS/nixpkgs/blob/d31617bedffa3e5fe067feba1c68b1a7f644cb4f/pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs/manual.py#L81-L102
console.log("awa", node);
remove
@ -0,0 +34,4 @@
includeContents = readSync(includePath, "utf8");
} catch (err) {
throw new Error(
`The @include file path at ${includePath} was not found.\n\nInclude Location: ${file.path}:${node.position.start.line}:${node.position.start.column}`
update msg
@ -0,0 +53,4 @@
// trim trailing newline
includeContents.contents = includeContents.contents.trim();
// return contents wrapped inside a "code" node
it renders fine regardless but this is 100% wrong, copy-paste error.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.