User Tools

Site Tools


packet:xrouter:docs:parsing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
packet:xrouter:docs:parsing [2025/04/22 02:46] m0mzfpacket:xrouter:docs:parsing [2025/04/22 03:04] (current) m0mzf
Line 68: Line 68:
 OUTPUTDIR="$BASEPATH/docuwiki-$DATE" OUTPUTDIR="$BASEPATH/docuwiki-$DATE"
 INDEXFILE="${OUTPUTDIR}"/index.docuwiki INDEXFILE="${OUTPUTDIR}"/index.docuwiki
- 
-# 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="${OUTPUTDIR}"/"$1"/"${section}".docuwiki  local outputpath="${OUTPUTDIR}"/"$1"/"${section}".docuwiki
- # Create formatted section for wiki namespace+ # Create formatted section for wiki index page
  echo "== $section ==" >> "$INDEXFILE"  echo "== $section ==" >> "$INDEXFILE"
-Format the section name as docuWiki header +and create formatted header for the wiki content 
- echo "$section" | awk '{hdr="======"; print hdr $0 hdr}' >> "$outputpath"+ echo "====== $section ======" >> "$outputpath"
  # Spit some stuff out to the shell  # Spit some stuff out to the shell
  echoRed "$section"  echoRed "$section"
packet/xrouter/docs/parsing.1745289979.txt.gz · Last modified: 2025/04/22 02:46 by m0mzf