You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix anchor links in markdown conversion
- Handle .md#anchor links properly by preserving anchor fragments
- Split URL and anchor parts before processing
- Reassemble with trailing slash and anchor intact
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix context-aware link conversion
- Add source file parameter to link conversion methods
- Resolve relative paths against source file location
- Apply proper category mapping based on section
- Handle relative links like faq.md#anchor correctly
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add external API link redirection
- Add external_links configuration in config.yaml
- Configure bazel_api_base for external API documentation
- Add logic to redirect /rules/ and /reference/ links to bazel.build
- Preserve anchors and fragments in external links
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* add claude code
---------
Co-authored-by: Claude <noreply@anthropic.com>
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+
## Project Overview
6
+
7
+
This is a Python-based tool that converts Google Devsite documentation (from bazel.build/docs) into Hugo/Docsy format for easier navigation and modification. The converter transforms Devsite frontmatter, directory layout, and styling to be compatible with the Hugo static site generator and Docsy theme.
The system automatically detects programming languages for code blocks without explicit language identifiers using pattern matching defined in `config.yaml`. Supports Starlark (Bazel), Bash, Python, C++, Java, JavaScript, TypeScript, and more.
88
+
89
+
### Link Conversion
90
+
The converter handles both internal link conversion within the Hugo site and external link redirection to maintain compatibility with existing Bazel API documentation.
91
+
92
+
### CSS/SCSS Processing
93
+
PostCSS and Autoprefixer are used for CSS processing (see package.json dependencies), though the main conversion logic is in Python.
0 commit comments