Fixed docs build

This commit is contained in:
rasmus-kirk
2024-03-01 07:38:14 +01:00
parent a438ccb529
commit bd37178c70
11 changed files with 44 additions and 19 deletions
+1
View File
@@ -1,4 +1,5 @@
-- Adds anchor links to headings with IDs.
function Header (h)
if h.identifier ~= '' then
-- an empty link to this header
+2 -1
View File
@@ -1,4 +1,5 @@
-- This function is called for each CodeBlock element in the document.
-- Change each untagged codeblock in the document to a "nix" code block.
function CodeBlock(block)
-- Check if the code block does not have a language specified.
if block.classes[1] == nil then
+2
View File
@@ -1,3 +1,5 @@
-- Changes all level 2 headers to level 3
function Header(elem)
-- Check if the header is of level 2
if elem.level == 2 then
+1 -1
View File
@@ -1,4 +1,4 @@
-- file: remove-declared-by.lua
-- Changes "Example" and "Default" section fenced code blocks into "nix" tagged code blocks
function Para(elem)
-- Check if the first element of the paragraph is Emph (italic)
+1 -1
View File
@@ -1,4 +1,4 @@
-- file: remove-declared-by.lua
-- Removed "Declared by:" paragraphs. TODO: Make them link to the GH repo instead
function Para(elem)
-- Check if the first element of the paragraph is Emph (italic)
+1 -1
View File
@@ -1,4 +1,4 @@
-- file: remove-util-nixarr.lua
-- Remove junk module.args section of the nix documentation
-- This function checks if a string starts with a given start string
function starts_with(str, start)
+1 -1
View File
@@ -1,4 +1,4 @@
-- file: remove-util-nixarr.lua
-- Remove the "util-nixarr" sections from the docs
-- This function checks if a string starts with a given start string
function starts_with(str, start)