diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index e95dc5668..22a80680f 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -68,62 +68,14 @@ jobs: - name: Convert Manpages to HTML and Generate Index run: | - mkdir -p manpages-html + # Extract tldr pages for examples + mkdir -p tldr-pages + if [ -f coreutils/docs/tldr.zip ]; then + unzip -o coreutils/docs/tldr.zip -d tldr-extract + find tldr-extract -name "*.md" -exec cp {} tldr-pages/ \; + fi - # Convert manpages to HTML and collect names - manpage_names="" - for man in manpages/usr/local/share/man/man*/*.1; do - if [ -f "$man" ]; then - name=$(basename "$man" .1) - man2html -r "$man" > "manpages-html/${name}.html" - manpage_names="$manpage_names $name" - fi - done - - # Generate index.html with links to all manpages - cat > manpages-html/index.html << 'HEADER' - - -
- -Complete manual pages for all uutils coreutils commands. Click on any command to view its full documentation.
-$desc
" + ;; + '`'*'`') + cmd="${line#\`}" + cmd="${cmd%\`}" + cmd=$(echo "$cmd" | sed 's/&/\&/g; s/\</g; s/>/\>/g') + tldr_html="$tldr_html$cmdComplete manual pages for all uutils coreutils commands. Click on any command to view its full documentation.
+