Fixed docs build
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
-- Adds anchor links to headings with IDs.
|
||||
|
||||
function Header (h)
|
||||
if h.identifier ~= '' then
|
||||
-- an empty link to this header
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,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,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,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,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)
|
||||
|
||||
Reference in New Issue
Block a user