Process #1

Closed
opened 2023-03-27 18:35:43 +00:00 by jolheiser · 7 comments
Owner

We need to figure out a sustainable process for this new documentation.

  1. I would prefer keeping the docs in the main repo, a low barrier to entry is (imo) extremely important for people contributing to docs. Docs are somehow always
    a. the lowest hanging fruit for contributions, yet
    b. one of the least contributed-to facets of a project
  2. With that in mind, I don't think we can get around some minor hackery to extract the docs from the main repo into something docusaurus can use.
    • Looking at Woodpecker, we have a dedicated docs folder for old versions, which imo isn't ideal

My initial thought is to convert all the docs in the main repo to simple markdown files (with frontmatter, presumably), or more simply something that you could theoretically copy/paste into docusaurus and it would "just work" assuming the config is set up correctly here.


I by no means have this all the way thought out, so feedback is very welcome!

We need to figure out a sustainable process for this new documentation. 1. I would prefer keeping the docs in the main repo, a low barrier to entry is (imo) extremely important for people contributing to docs. Docs are somehow always a. the lowest hanging fruit for contributions, yet b. one of the least contributed-to facets of a project 2. With that in mind, I don't think we can get around some minor hackery to extract the docs from the main repo into something docusaurus can use. - Looking at Woodpecker, we have a dedicated docs folder for old versions, which imo isn't ideal --- My initial thought is to convert all the docs in the main repo to simple markdown files (with frontmatter, presumably), or more simply something that you could theoretically copy/paste into docusaurus and it would "just work" assuming the config is set up correctly here. --- I by no means have this all the way thought out, so feedback is very welcome!

A agree with your assessment re: reasons to keep docs in the main repo, hence why I have the CI converting the docs from the main repo into a format acceptable by docusaurus.

This approach means that we can, in the future, have tea cli, act_runner, and other related tools have docs in their specific repo, and then pull them all together into this one site. Additionally, we can still keep the docs in a hugo acceptable format and build/bundle the docs on gitea build/release.

A agree with your assessment re: reasons to keep docs in the main repo, hence why I have the CI converting the docs from the main repo into a format acceptable by docusaurus. This approach means that we can, in the future, have tea cli, act_runner, and other related tools have docs in their specific repo, and then pull them all together into this one site. Additionally, we can still keep the docs in a hugo acceptable format and build/bundle the docs on gitea build/release.
Author
Owner

I hadn't thought of adding docs from other repos, but that would also be great!

wrt hugo-compatible, the reason I wanted to start this discussion was to figure out whether we wanted to deal with all of the idiosyncrasies of Hugo and Docusaurus vs simplifying the Docu ingestion process and going all-in.

The shell scripts here work (and again a huge thank you for that), so there's certainly no rush, but would it be easier to maintain if we no longer had to worry about Hugo at all?

I hadn't thought of adding docs from other repos, but that would also be great! wrt hugo-compatible, the reason I wanted to start this discussion was to figure out whether we wanted to deal with all of the idiosyncrasies of Hugo _and_ Docusaurus vs simplifying the Docu ingestion process and going all-in. The shell scripts here work (and again a huge thank you for that), so there's certainly no rush, but would it be easier to maintain if we no longer had to worry about Hugo at all?
Owner

A agree with your assessment re: reasons to keep docs in the main repo, hence why I have the CI converting the docs from the main repo into a format acceptable by docusaurus.

This approach means that we can, in the future, have tea cli, act_runner, and other related tools have docs in their specific repo, and then pull them all together into this one site. Additionally, we can still keep the docs in a hugo acceptable format and build/bundle the docs on gitea build/release.

I don't think we need always to keep compatible with hugo. I mean, once the new docs site ready, we can change main repositories docs as a docusaurus folder directly. Since docusaurus supports mono repos, so it's a good idea to merge all documentation as in one. But we need to consider about the webhooks. How to and when update this docs site?

> A agree with your assessment re: reasons to keep docs in the main repo, hence why I have the CI converting the docs from the main repo into a format acceptable by docusaurus. > > This approach means that we can, in the future, have tea cli, act_runner, and other related tools have docs in their specific repo, and then pull them all together into this one site. Additionally, we can still keep the docs in a hugo acceptable format and build/bundle the docs on gitea build/release. I don't think we need always to keep compatible with hugo. I mean, once the new docs site ready, we can change main repositories docs as a docusaurus folder directly. Since docusaurus supports mono repos, so it's a good idea to merge all documentation as in one. But we need to consider about the webhooks. How to and when update this docs site?
Member

Docs need to stay in the main repo. I wouldn't actually mind also having docasaurus there, replacing hugo eventually.

Docs need to stay in the main repo. I wouldn't actually mind also having docasaurus there, replacing hugo eventually.
Author
Owner

Ongoing with this topic, I propose that once a version has been released (or after we drop official support?), we move the docs from that branch to this repo directly.

It means less cloning, and theoretically nothing much should change from that point on for that version of the docs.
Plus, if we ever have to do a larger refactor, it will be easier than a state where version X had X layout, version Y has Y layout, etc. as we continue to evolve the docs.

Note that I'm referring to the main repo, auxiliary repo docs probably don't need the same treatment.

Ongoing with this topic, I propose that once a version has been released (or after we drop official support?), we move the docs from that branch to this repo directly. It means less cloning, and theoretically nothing much should change from that point on for that version of the docs. Plus, if we ever have to do a larger refactor, it will be easier than a state where version X had X layout, version Y has Y layout, etc. as we continue to evolve the docs. Note that I'm referring to the main repo, auxiliary repo docs probably don't need the same treatment.
Owner

But the event is difficult to catch?

But the event is difficult to catch?
Author
Owner

Moving the above to #54, this can be closed with #51

Moving the above to #54, this can be closed with #51
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/gitea-docusaurus#1
No description provided.