How lib-pku/libpku works
libpku is a community-maintained archive of university course materials, organized by course and course category. The README’s user workflow is to visit the published site, find a course’s materials, and follow a link to download them. Internally, index.js walks the repository tree, builds a linked table of contents, and renders it as HTML. The README documents the published-site workflow; the source excerpt shows index generation, but not the deployment or serving mechanism.
Main entry points: index.js Repository scan · 专业课 Core courses · 通选课 Elective courses · 公选课 General courses
Components 12
Course archive
- Core courses
专业课 - Elective courses
通选课 - General courses
公选课 - Politics courses
政治课 - Summer courses
暑期课 - English courses
英语课
Catalog generation
- Repository scan
index.js - Linked contents
index.js - HTML rendering
index.js
Published access
- Published site
- GitHub raw files
Other components
- Student
Connections 11
- Student → Published site: browses
README.md - Published site → GitHub raw files: links to downloads
README.md - Repository scan → Core courses: scans tree
index.js - Repository scan → Elective courses: scans tree
index.js - Repository scan → General courses: scans tree
index.js - Repository scan → Politics courses: scans tree
index.js - Repository scan → Summer courses: scans tree
index.js - Repository scan → English courses: scans tree
index.js - Repository scan → Linked contents: builds links
index.js - Linked contents → HTML rendering: renders markup
index.js - HTML rendering → Published site: publishes output