access-news / _

Repo for Access News project management.
0 stars 1 forks source link

Research: how to keep external docs in sync with code? #2

Open toraritte opened 1 year ago

toraritte commented 1 year ago

That is, a documentation that is version controlled and it is explicitly noted with which commit of the project is it in sync with. (Or, to make it more granular, each section would refer to which commit they pertain to. This would breed confusion: e.g., one module depends on another, but the docs show different states of the development.)

Chunks of text would pull in a specific section of code to show what it is referring to. Probably whole lines would be the simplest, but there can be a lot going on in a single line, so explore referring to a specific selection in context. E.g.,

super dense ( code ): with & a lot of => symbols @ where the programmer-didnt-care to make it easier to read))

could be represented with highlighting different section that corresponding to the text explaining it (where VVVs represent the highlighted part, and the dots where it would be "dimmed" with CSS, for example)

This function is blabla

......VVVVVVVVVVVVVV..........................................................................................
super dense ( code ): with & a lot of => symbols @ where the programmer-didnt-care to make it easier to read))

but this part is balabab

......................................VVVVVVVVVVVV............................................................
super dense ( code ): with & a lot of => symbols @ where the programmer-didnt-care to make it easier to read))