Skip to content

Commit 6a7039f

Browse files
beklapkolnhsingh
andauthored
Brody/docs versions (#125)
## Summary Preview link: https://langchain-5e9cc07a-preview-brodyd-1754925111-e44a21e.mintlify.app/oss/python/overview This PR does two main things: 1. It reworks the `builder.py` file to generate JS and Python versions of the docs. 2. It adds CSS and JS files for conditionally hiding the language picker. The requirements for the picker are: - Show the picker when viewing the LangGraph docs - Hide the picker when viewing the LangGraph Platform or LangChain Labs docs ## Review requests + info We're doing custom things on top of Mintlify's stuff. It would be great if someone can help verify the changes to the `builder.py` file are acceptable, and although it's not the most elegant solution, that the CSS and JS files are an acceptable though likely temporary solution. I tried to update and fix tests appropriately but I really need someone to validate those changes are good. I haven't fixed/updated unit tests like this before. ## Todos - [x] Get this PR reviewed and implement any feedback - [x] Fix tests - [ ] Merge with #109 - [ ] 🎉 --------- Co-authored-by: Lauren Hirata Singh <[email protected]>
1 parent 1497152 commit 6a7039f

File tree

6 files changed

+1365
-426
lines changed

6 files changed

+1365
-426
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ Install `mint` from https://mintlify.com/docs/installation
4242
uv sync --all-groups
4343
```
4444

45-
4. **Use the docs CLI tool:**
45+
4. **Install Mintlify CLI**
46+
47+
The docs CLI uses parts of the Mintlify CLI so you need to install that too.
48+
```bash
49+
npm i -g mint
50+
```
51+
52+
5. **Use the docs CLI tool:**
4653

4754
After setup, you'll have access to the `docs` command:
4855
```bash

0 commit comments

Comments
 (0)