mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-16 22:49:25 +03:00
doc: comment lua scripts
This commit is contained in:
parent
a49d36b979
commit
df55fbb62a
1 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
--[[
|
||||||
|
Converts Link AST nodes with empty label to DocBook xref elements.
|
||||||
|
|
||||||
|
This is a temporary script to be able use cross-references conveniently
|
||||||
|
using syntax taken from MyST, while we still use docbook-xsl
|
||||||
|
for generating the documentation.
|
||||||
|
|
||||||
|
Reference: https://myst-parser.readthedocs.io/en/latest/using/syntax.html#targets-and-cross-referencing
|
||||||
|
]]
|
||||||
|
|
||||||
local function starts_with(start, str)
|
local function starts_with(start, str)
|
||||||
return str:sub(1, #start) == start
|
return str:sub(1, #start) == start
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue