X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2Fsrc%2Frtd%2FREADME;h=0a26284c90f682237954b82c1e4a26a4313aaaec;hb=refs%2Fchanges%2F52%2F3652%2F11;hp=c7dd309c854e08e2bd6bebed9fffd68e8a60ca43;hpb=b7a4b52f73d51db6077d2c0b56be262c36f472f7;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/rtd/README b/doc/src/rtd/README index c7dd309..0a26284 100644 --- a/doc/src/rtd/README +++ b/doc/src/rtd/README @@ -1,25 +1,32 @@ -This directory contains source for the project mandated "read the docs" -.rst documentation. The Makefile will both build the doc from the source -here and "install" it into the docs directory at the repo root. While -it is not good practice, the generated .rst files must be checked into -the repo and committed with changes to the source. +This directory contains source for the project mandated "read the +docs" .rst documentation. If the "tfm" tool is available, the +Makefile will both build the doc from the source here and "install" it +into the docs directory at the repo root. Then the generated .rst +files must be checked into the repo and committed with changes to the +source (maybe not the best practice). -The command 'make all' should be all that is needed to build the -rtd documentation. +The command 'make all' should be all that is needed to build the +rtd documentation. Follow that with 'make publish' to actually move +the .rst files into the docs directory at the root; only the changed +files are moved. + +Adding A New Man Page +When a new manual page is added to the source (../man), it must be +added to the list in the user's guide source in this directory. Rationale Documentation is just code, and by maintaining the documentation as -source is is possible to generate various forms of output with a +source is is possible to generate various forms of output with a single make. While it is possible to convert X to Y, a true document -composition language is far better at geneating readable Postscript -output with embedded figures as well as text and tables. +composition language is far better at generating readable Postscript +output with embedded figures as well as text and tables. CAUTION: The RST syntax is as bad as python when it comes to dealing with spaces. For example &bold( foo ) will insert spaces after the initial bold trigger, and before the trailing bold trigger which will throw -the tox validation into a tizzy. Further, something like 'void *' +the tox validation into a tizzy. Further, something like 'void *' and 'rmr_ ' does as well. If needed, use the defined escape macro to add an escape in such situations; it should only generate for RST and not impact other output formats.