mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-28 01:27:09 +03:00
doc: Support hyper-linking to defined structures for man pages
This commit is contained in:
1 parent
b332a188e5
commit
e3f7dbeec8
3 files changed
+9
-1
No files matched your search
+5
-1
@@ -133,7 +133,11 @@ man-page-build: upg-page-build man-page-start
|
||||
echo "/// @page man_$${ENTRY} $${MANUAL}" > $(top_builddir)/doc/man_tmp/$${MANUAL}.dox ;\
|
||||
echo "/// @htmlinclude $${ENTRY}.html $${MANUAL}" >> $(top_builddir)/doc/man_tmp/$${MANUAL}.dox ;\
|
||||
## Create html file
|
||||
cat $(top_builddir)/man/$${BASE}.html | ${SED} "s/Function: $${ENTRY}(/<a class=\"anchor\" id=\"$${ENTRY}\"><\/a>\0/" > $(top_builddir)/doc/man_html/$${ENTRY}.html ;\
|
||||
cat $(top_builddir)/man/$${BASE}.html |\
|
||||
${SED} "s/Function: $${ENTRY}(/<a class=\"anchor\" id=\"$${ENTRY}\"><\/a>\0/" |\
|
||||
${SED} "s/Structure $${ENTRY}</<a class=\"anchor\" id=\"$${ENTRY}\"><\/a>\0/" |\
|
||||
${SED} "s/SECTION: [A-Za-z /]*: $${ENTRY}</<a class=\"anchor\" id=\"$${ENTRY}\"><\/a>\0/" \
|
||||
> $(top_builddir)/doc/man_html/$${ENTRY}.html ;\
|
||||
## Update scratch_insert_file for sorting later
|
||||
echo "$${ENTRY}" >> $(top_builddir)/doc/scratch_insert_file ;\
|
||||
done ;\
|
||||
|
||||
Reference in new issue
Block a user