From 2a0119af88eee2a4a374fb407be01fe633084ec5 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 15:34:55 +0000 Subject: [PATCH 1/3] Add changelog entry for Python library docs Co-Authored-By: paarth --- fern/products/docs/pages/changelog/2026-03-02.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fern/products/docs/pages/changelog/2026-03-02.mdx diff --git a/fern/products/docs/pages/changelog/2026-03-02.mdx b/fern/products/docs/pages/changelog/2026-03-02.mdx new file mode 100644 index 000000000..dd41322e8 --- /dev/null +++ b/fern/products/docs/pages/changelog/2026-03-02.mdx @@ -0,0 +1,9 @@ +--- +tags: ["api-reference"] +--- + +## Python library docs + +Add Python library reference documentation to your Fern docs site. Fern generates browsable, structured documentation directly from your Python SDK source code, including modules, classes, methods, and type signatures. To get started, add a `library` navigation item and configure `libraries` in your `docs.yml`, then run `fern docs md generate` to produce the reference pages. + +Python is the first supported language, with more languages on the way. From 2c411abbeb909aef9edb61eaf98defbe5e4739be Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 15:44:03 +0000 Subject: [PATCH 2/3] Add CLI commands and usage details to changelog entry Co-Authored-By: paarth --- .../docs/pages/changelog/2026-03-02.mdx | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/fern/products/docs/pages/changelog/2026-03-02.mdx b/fern/products/docs/pages/changelog/2026-03-02.mdx index dd41322e8..bf22e33f3 100644 --- a/fern/products/docs/pages/changelog/2026-03-02.mdx +++ b/fern/products/docs/pages/changelog/2026-03-02.mdx @@ -1,9 +1,34 @@ --- -tags: ["api-reference"] +tags: ["api-reference", "configuration"] --- ## Python library docs -Add Python library reference documentation to your Fern docs site. Fern generates browsable, structured documentation directly from your Python SDK source code, including modules, classes, methods, and type signatures. To get started, add a `library` navigation item and configure `libraries` in your `docs.yml`, then run `fern docs md generate` to produce the reference pages. +Add Python library reference documentation to your Fern docs site. Fern generates browsable, structured documentation directly from your Python SDK source code, including modules, classes, methods, and type signatures. + +To set up library docs, add a `libraries` configuration and a `library` navigation item to your `docs.yml`: + +```yaml title="docs.yml" +libraries: + my-python-sdk: + input: + git: https://github.com/your-org/your-python-sdk + output: + path: ./generated/my-python-sdk + lang: python + +navigation: + - section: SDK Reference + contents: + - library: my-python-sdk +``` + +Then generate the reference pages: + +```bash +fern docs md generate +``` + +This parses your Python source code on the server, generates MDX pages locally, and writes a `_navigation.yml` file to the output directory. The generated pages are resolved as first-class navigation sections in `fern docs dev` and `fern generate --docs`. Python is the first supported language, with more languages on the way. From 4de753ce9d6774582c777263b2e5ab3110634b93 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 15:45:47 +0000 Subject: [PATCH 3/3] Remove _navigation.yml mention from changelog Co-Authored-By: paarth --- fern/products/docs/pages/changelog/2026-03-02.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fern/products/docs/pages/changelog/2026-03-02.mdx b/fern/products/docs/pages/changelog/2026-03-02.mdx index bf22e33f3..0e8baf380 100644 --- a/fern/products/docs/pages/changelog/2026-03-02.mdx +++ b/fern/products/docs/pages/changelog/2026-03-02.mdx @@ -29,6 +29,6 @@ Then generate the reference pages: fern docs md generate ``` -This parses your Python source code on the server, generates MDX pages locally, and writes a `_navigation.yml` file to the output directory. The generated pages are resolved as first-class navigation sections in `fern docs dev` and `fern generate --docs`. +This parses your Python source code on the server and generates MDX pages locally. The generated pages are resolved as first-class navigation sections in `fern docs dev` and `fern generate --docs`. Python is the first supported language, with more languages on the way.