Skip to content
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

Commit API docs and generate them using a separate task. #48

Merged
merged 10 commits into from
Mar 15, 2024

Conversation

kirkrodrigues
Copy link
Member

Description

Currently, clp-ffi-py's API docs are built whenever the docs site is built. This has two issues:

  • We can't apply any manual customizations to the API docs, if we wanted to.
  • The edit links in the docs site won't work for the API docs since they aren't committed to the repo.

This PR commits the API docs to the repo and builds them using a separate task that devs should run manually if they ever add/remove a package/module.

This PR depends on #46 being merged first.

Validation performed

  • Validated task docs:serve continues to work correctly.
  • Validated task docs:api-docs generates the API docs but doesn't change the committed docs (right now).

Copy link
Contributor

@haiqi96 haiqi96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a small comment on the grammer

docs/README.md Outdated
task docs:api-docs
```

* This will regenerate the API docs in `src/api`. You should run this whenever you change what
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need the "what" in the sentence?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the wording.

@@ -0,0 +1,7 @@
clp\_ffi\_py.ir.native module
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea what are those so I assume they are auto generated

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yessir.

@kirkrodrigues kirkrodrigues requested a review from haiqi96 March 15, 2024 20:42
@kirkrodrigues kirkrodrigues merged commit 50396dc into y-scope:main Mar 15, 2024
@kirkrodrigues kirkrodrigues deleted the commit-api-docs branch March 15, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants