File tree Expand file tree Collapse file tree 6 files changed +45
-41
lines changed
Expand file tree Collapse file tree 6 files changed +45
-41
lines changed Original file line number Diff line number Diff line change 3737 podman run -v $PWD:/srv:z --workdir /srv/_build --rm rpm sh -c \
3838 "cmake .. && make man-html"
3939
40- mv _build/docs/man/{*.html,index.md} docs/man /
40+ mv _build/docs/_man docs/
4141
4242 - name : Setup Pages
4343 id : pages
Original file line number Diff line number Diff line change 99# - jekyll-readme-index
1010 - jekyll-titles-from-headings
1111 - jekyll-relative-links
12+
13+ collections :
14+ man :
15+ output : true
Original file line number Diff line number Diff line change @@ -19,20 +19,20 @@ foreach(man ${manuals})
1919endforeach ()
2020add_custom_target (man ALL DEPENDS ${manuals} )
2121
22- set (manuals-html ${manuals} )
23- list (TRANSFORM manuals-html APPEND .html)
24- configure_file (index.sh index.sh @ONLY )
22+ configure_file (index.md index.md @ONLY )
2523configure_file (post.sh post.sh @ONLY )
2624foreach (man ${manuals} )
27- add_custom_command (OUTPUT ${man} .html
25+ set (outfile ${CMAKE_BINARY_DIR} /docs/_man/${man} .html)
26+ add_custom_command (OUTPUT ${outfile}
27+ COMMAND mkdir -p ${CMAKE_BINARY_DIR} /docs/_man
2828 COMMAND scd2html -f
2929 < ${CMAKE_CURRENT_SOURCE_DIR} /${man}.scd
30- > ${man} .html
31- COMMAND ./post.sh ${man} .html
30+ > ${outfile}
31+ COMMAND ./post.sh ${outfile}
3232 DEPENDS ${man} .scd )
33+ list (APPEND manuals-html ${outfile} )
3334endforeach ()
34- add_custom_command (OUTPUT index.md COMMAND ./index.sh )
35- add_custom_target (man-html ALL DEPENDS ${manuals-html} index.md )
35+ add_custom_target (man-html ALL DEPENDS ${manuals-html} )
3636
3737# Install manuals for the enabled features
3838set (manuals ${core} )
Original file line number Diff line number Diff line change 1+ ---
2+ layout : default
3+ title : rpm.org - RPM Manual Pages
4+ ---
5+
6+ {% assign utils = site.man | where: 'topic', 'util' %}
7+ {% assign plugins = site.man | where: 'topic', 'plugin' %}
8+
9+ # RPM Manual Pages
10+
11+ ## Tools
12+
13+ {% for page in utils -%}
14+ - [ {{ page.name }}] (rpm{{ page.url }})
15+ {% endfor %}
16+
17+ ## Plugins
18+
19+ {% for page in plugins -%}
20+ - [ {{ page.name }}] (rpm{{ page.url }})
21+ {% endfor %}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33FILE=$1
4- NAME=$( echo " $FILE " | sed ' s/^\(.\+\)\.\(.\+\)\.html$/\1(\2)/' )
4+ NAME=$( basename " $FILE " | sed ' s/^\(.\+\)\.\(.\+\)\.html$/\1(\2)/' )
5+
6+ topic () {
7+ case $1 in
8+ rpm-plugin* ) echo plugin ;;
9+ * ) echo util ;;
10+ esac
11+ }
12+
513FRONT_MATTER=" \
614---
715layout: default
816title: rpm.org - $NAME
17+ name: $NAME
18+ topic: $( topic $NAME )
919---
1020
1121<style type=" text/css" >
You can’t perform that action at this time.
0 commit comments