packet:xrouter:docs:parsing
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
packet:xrouter:docs:parsing [2025/04/22 02:28] – created m0mzf | packet:xrouter:docs:parsing [2025/04/22 03:04] (current) – m0mzf | ||
---|---|---|---|
Line 24: | Line 24: | ||
# | # | ||
# - This script does not take any arguments | # - This script does not take any arguments | ||
- | # - The only required configuration is to set the following path | + | # - The only required configuration is to set the wiki namespace |
- | BASEPATH=/ | + | |
- | # and the Wiki namespace | + | |
NAMESPACE=" | NAMESPACE=" | ||
+ | # and the working folder for the script | ||
+ | BASEPATH=/ | ||
# This folder should contain the two directories " | # This folder should contain the two directories " | ||
# and " | # and " | ||
Line 68: | Line 68: | ||
OUTPUTDIR=" | OUTPUTDIR=" | ||
INDEXFILE=" | INDEXFILE=" | ||
- | |||
- | # Wiki MANPAGE namespace structure. We pass this into awk later but define it here | ||
- | |||
# Handy functions | # Handy functions | ||
Line 154: | Line 151: | ||
# Use the section name to generate a file foreach section | # Use the section name to generate a file foreach section | ||
local outputpath=" | local outputpath=" | ||
- | # Create formatted section for wiki namespace | + | # Create formatted section for wiki index page |
echo "== $section ==" >> " | echo "== $section ==" >> " | ||
- | # Format the section name as a docuWiki | + | # and create |
- | echo " | + | echo "====== |
# Spit some stuff out to the shell | # Spit some stuff out to the shell | ||
echoRed " | echoRed " | ||
Line 191: | Line 188: | ||
echo " | echo " | ||
echo "The content below is auto-generated from the XRouter documentation using [[$NAMESPACE: | echo "The content below is auto-generated from the XRouter documentation using [[$NAMESPACE: | ||
- | echo " | ||
echoGreen " | echoGreen " | ||
parseFiles MAN | parseFiles MAN |
packet/xrouter/docs/parsing.1745288905.txt.gz · Last modified: 2025/04/22 02:28 by m0mzf