$ show gnu4cn/ccna60d
This repository is a Chinese translation and adaptation of the 'CCNA in 60 Days' study guide, organized as an mdBook static site with a companion Tauri desktop application. The primary content consists of 60 daily lessons covering Cisco CCNA exam topics (routing, switching, security, WAN, etc.), each with theory, configuration examples, review questions, and hands-on labs. The desktop app (src-tauri/) provides offline reading, bookmarking, reading progress tracking, and an LLM assistant (Anthropic Claude) for answering questions about the material. The project is hybrid: the vast majority of the repository is documentation, but it also includes a functional application wrapper with CI/CD. While the educational content is thorough and well-structured, the application components are minimal and tightly coupled to the mdBook ecosystem. The repository appears to have been abandoned (last commit with a future date indicates likely clock skew or repository corruption; no recent activity).
The LLM identified 4 files worth highlighting for reuse:
A self-contained JavaScript module that enhances the mdBook reading experience inside the Tauri desktop app. It implements reading progress persistence, bookmark management, scroll position restoration, and keyboard shortcuts. The script only activates when running inside Tauri (detected via window.__TAURI__), leaving the web version untouched. This pattern is easily extractable for any web-based ebook reader that needs offline-first features.
A lightweight JavaScript sidebar that generates a floating table of contents from the page's headings, with automatic active section highlighting on scroll. It is independent of the mdBook theme and can be dropped into any static site generator or documentation page to provide a persistent navigation sidebar for wide viewports.
A Rust module that implements a Tauri command for streaming responses from the Anthropic Claude API using Server-Sent Events (SSE). It defines a StreamEvent enum to parse the streaming chunks and returns them as a vector of events. This pattern demonstrates clean separation of AI model interaction from UI logic and can be reused in any Tauri application requiring streaming LLM responses.
A GitHub Actions workflow that builds and publishes the Tauri desktop app for Linux (AppImage) and Windows (NSIS/MSI). It includes steps to build the mdBook content first, then compile the Tauri app, and finally publish to GitHub Releases on tag push. This workflow is a reusable template for any mdBook + Tauri project requiring automated cross-platform releases.