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

Fix make docs_build and related scripts #7276

Merged
merged 6 commits into from Jul 12, 2023

Conversation

os1ma
Copy link
Contributor

@os1ma os1ma commented Jul 6, 2023

Description: a description of the change

Fixed make docs_build and related scripts which caused errors. There are several changes.

First, I made the build of the documentation and the API Reference into two separate commands. This is because it takes less time to build. The commands for documents are make docs_build, make docs_clean, and make docs_linkcheck. The commands for API Reference are make api_docs_build, api_docs_clean, and api_docs_linkcheck.

It looked like docs/.local_build.sh could be used to build the documentation, so I used that. Since .local_build.sh was also building API Rerefence internally, I removed that process. .local_build.sh also added some Bash options to stop in error or so. Futher more added cd "${SCRIPT_DIR}" at the beginning so that the script will work no matter which directory it is executed in.

docs/api_reference/api_reference.rst is removed, because which is generated by docs/api_reference/create_api_rst.py, and added it to .gitignore.

Finally, the description of CONTRIBUTING.md was modified.

Issue: the issue # it fixes (if applicable)

#6413

Dependencies: any dependencies required for this change

nbdoc was missing in group docs so it was added. I installed it with the poetry add --group docs nbdoc command. I am concerned if any modifications are needed to poetry.lock. I would greatly appreciate it if you could pay close attention to this file during the review.

Tag maintainer

  • General / Misc / if you don't know who to tag: @baskaryan

If this PR needs any additional changes, I'll be happy to make them!

@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Jul 12, 2023 1:45am

@dosubot dosubot bot added 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder 🤖:improvement Medium size change to existing code to handle new use-cases labels Jul 6, 2023
@vercel vercel bot temporarily deployed to Preview July 7, 2023 19:31 Inactive
@baskaryan
Copy link
Collaborator

baskaryan commented Jul 12, 2023

this is amazing, thanks so much @os1ma!!

@baskaryan baskaryan merged commit 2667ddc into langchain-ai:master Jul 12, 2023
14 checks passed
@os1ma
Copy link
Contributor Author

os1ma commented Jul 12, 2023

Thanks for merging! I also appreciate this amazing project!

aerrober pushed a commit to aerrober/langchain-fork that referenced this pull request Jul 24, 2023
**Description: a description of the change**

Fixed `make docs_build` and related scripts which caused errors. There
are several changes.

First, I made the build of the documentation and the API Reference into
two separate commands. This is because it takes less time to build. The
commands for documents are `make docs_build`, `make docs_clean`, and
`make docs_linkcheck`. The commands for API Reference are `make
api_docs_build`, `api_docs_clean`, and `api_docs_linkcheck`.

It looked like `docs/.local_build.sh` could be used to build the
documentation, so I used that. Since `.local_build.sh` was also building
API Rerefence internally, I removed that process. `.local_build.sh` also
added some Bash options to stop in error or so. Futher more added `cd
"${SCRIPT_DIR}"` at the beginning so that the script will work no matter
which directory it is executed in.

`docs/api_reference/api_reference.rst` is removed, because which is
generated by `docs/api_reference/create_api_rst.py`, and added it to
.gitignore.

Finally, the description of CONTRIBUTING.md was modified.

**Issue: the issue # it fixes (if applicable)**

langchain-ai#6413

**Dependencies: any dependencies required for this change**

`nbdoc` was missing in group docs so it was added. I installed it with
the `poetry add --group docs nbdoc` command. I am concerned if any
modifications are needed to poetry.lock. I would greatly appreciate it
if you could pay close attention to this file during the review.

**Tag maintainer**
- General / Misc / if you don't know who to tag: @baskaryan

If this PR needs any additional changes, I'll be happy to make them!

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder 🤖:improvement Medium size change to existing code to handle new use-cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants