opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[doc] Items to complete for bubble documentation

Open sjgitty opened this issue 7 years ago • 7 comments

This is a list of items still left to do for bubble documentation. There are likely more coming, will keep this up to date.

  • [x] check in md --> html script (issue lowRISC/stwg-base#657 ) (@asb )
  • [x] fix script to auto-change references within .md files to their .html counterpart so that links within .md work in .md world (on github) and .html world (on bubble) (@sjgitty )
  • [x] fix links on /index.md to point to doc/project.md and doc/product.md (instead of doc/project/index.html and doc/product/index.html) (@sjgitty )
  • [x] publish doc/product.md (@sjgitty )
  • [x] publish doc/project.md (@LaurieJ )
  • [x] augment doc/rm/index.md to add future-coming reference manuals (@sjgitty )
  • [x] augment doc/ug/index.md to add future-coming user guides (@sjgitty )
  • [x] change all references to split-out verilog style guide and remove from stwg-base (issue lowRISC/stwg-base#751 ) (@sjgitty )
  • [x] publish doc/ug/design.md (@sjgitty to own with @NilsGraf )
  • [x] publish doc/ug/getting_started_design.md (@sjgitty to own, cross reference with above)
  • [x] publish doc/ug/verification.md (@sriyerg to own with team)
  • [x] publish doc/ug/getting_started_verification.md (@sriyerg to own, cross reference with above)
  • [x] publish hw/index.md to explain landing spot (@sjgitty )
  • [x] add old bubble script's feature of scraping the repo for ip information, publishing list to hw/index.html in some form that distinguishes items in repo (scrape hw/ip//doc/.md for items) from items in top_earlgrey (look in its .hjson file). might be complicated, make sure is simplified. (@sjgitty )

sjgitty avatar Aug 05 '19 17:08 sjgitty

Looks like the second bullet might already be done, will confirm once the first bullet is done

sjgitty avatar Aug 05 '19 20:08 sjgitty

We might want to add this:

  • [ ] doc/ug/documentation.md

We have util/docgen/README.md but that is a bit thin. I'm adding a documentation section on design methodology, will poll for opinions on if that is enough there or not.

sjgitty avatar Aug 06 '19 01:08 sjgitty

Here is my take on the technical part of this:

  • Add support to docgen for converting a relative link to a .md file to a .html link (as a fall-back, can always do sed on the output - but that's fairly gross)
  • Validate that watchdoc currently produces something that approximates the bubble output
  • Rename watchdoc.py to build_docs.py with a --watch mode or similar
  • Ideally find a way to extract the doc name using our markdown parser. Alternatively, regex for stwgdoc, or more ambitiously switch to JSON/YAML frontmatter.
  • Generate IP list automatically and include in produced docs.
  • Probably generate a full listing of all generated doc pages (e.g. sitemap.html) so it's easy to find anything that hasn't been properly integrated yet
  • Submit PR, get it merged
  • Switch bubble to generate using that script

The intent is that the above is a relatively straight-forward change to our current system, keeping it stupid and simple. We do not want to reinvent static site generation, and we're likely to move to much more of this being handled by a traditional static site generator like Hugo, with docgen.py primarily being used for the IP docs where we have some custom extensions and need to interface with the register description generator.

With the above, we'll have something in-tree that regenerates our docs in a sensible fashion with a sensible linking approach. Something that we can iterate on, and potentially swap out wholesale later on.

asb avatar Aug 06 '19 14:08 asb

Hi @asb I replied to some of this on lowRISC/stwg-base#657 , maybe we should keep the build_docs/watchdoc piece of it to that issue, and save this issue for the non scripting piece?

sjgitty avatar Aug 06 '19 17:08 sjgitty

@sjgitty can you update the checkboxes to indicate what's still pending? Close this if it is all complete. Thanks.

aytong avatar Oct 31 '19 23:10 aytong

all but getting_started_dv. There are a couple that aren't 100% done, but there are other issues filed for those

sjgitty avatar Nov 01 '19 06:11 sjgitty

Last element was completed a while back, closing

sjgitty avatar Apr 16 '20 17:04 sjgitty