-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add typedoc, test doc generation #588
Conversation
What if we could build these to |
Yeah, that could be an option. I really don't have a strong opinion on this.
keen on other's opinion @achou11 @gmaclennan |
I was writing a decently long response to answer the questions here but we just discussed this over a call, so will document what was agreed instead:
|
Following andrews proposal I've basically set up documentation so that only public things gets docgenerated and commited to the repo. On the other hand I've set up a workflow so that we can publish an html version of documentation to ghpages. |
Also, along side |
not sure if disabling the custom domain for this repo will be trivial/possible based on what's described here: we have the custom domain set up on our org , which means that all of the projects are subject to it. in order to override it, we need to point to a new custom domain, but I don't think we can "revert" it to the project-specific default of digidem.github.io/mapeo-core-next |
Gregor mentioned that he's set up https://core.comapeo.app/ to point to GH pages so can use that for this project |
I've added a flow to
Yeah, me neither, same with all the internal files that are named with an absolute path... |
Things to pay attention to:
|
I'll plan to review tomorrow.
|
.github/workflows/release.yml
Outdated
npm run doc | ||
git status | ||
git add docs/api/md | ||
git commit -am "updated api docs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two nitpicks:
- Can we move this to the conventional commits style?
-a
adds all files, which I think we'd rather not do.
git commit -am "updated api docs" | |
git commit -m "docs: update API docs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this became out of sync with the actual flow that uses an external action that actually commits the file (see the docs.yml flow). I'll set the message so that it uses conventional commits
.github/workflows/docs.yml
Outdated
- name: Push updated markdown docs | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: 'Update api markdown docs' | ||
file_pattern: 'docs/api/md/*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to update the Markdown docs after every commit to main
? I feel like...maybe not? I like that you've added it as part of the release task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nnna, this was just to test doc generation during dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind removing this, then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than my two small nitpicks.
Co-authored-by: Evan Hahn <[email protected]>
This should close #586
In order for this documentation to be useful, it would be nice to know expectations for this (what things do we think are necessary to make this useful?).
For now I: