Giter Site home page Giter Site logo

muyehu011394 / os-lectures-build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dramforever/os-lectures-build

0.0 0.0 0.0 15 KB

Automated builds of https://github.com/LearningOS/os-lectures

Dockerfile 1.91% Makefile 5.72% Nix 24.45% Roff 1.64% JavaScript 66.27%

os-lectures-build's Introduction

os-lectures-build

https://github.com/LearningOS/os-lectures 讲义的自动构建

下载

https://github.com/dramforever/os-lectures-build/releases

包含组件

  • 构建所用的 Nix 表达式 default.nix 及依赖的文件 repo.jsonhandout-mode.patchMakefile
    • 完整描述了整个构建过程,你可能看不懂 = =,但本质和原 repo 是一样的
    • 用的是 TeX Live 2019
    • repo.json:用 nix-prefech-git 生成的锁定版本的仓库信息
      $ nix-prefetch-git --url "https://github.com/LearningOS/os-lectures.git" > repo.json
    • handout-mode.patch:使用 Beamer 的 handout 模式,关闭“动画”。
    • Makefile:使用 latexmk 自动处理构建时要求运行 xelated 多次的情况,使用 pdftk 将 PDF 文件合并
  • DockerfileDockerfile.1 缓存构建依赖
  • .circleci/config.yml CircleCI 配置文件,调用构建,上传 release 文件。
  • index.jspackage.jsonProcfile:自动更新 Bot,白嫖 Heroku
    • /update/$BOT_SECRET 发送任意 POST 请求触发一次更新,自动检查是否最新 commit 变动,若有在 CircleCI 触发一次 build
    • 环境变量:
      • BOT_SECRET 字符串,用法如前所述
      • DATABASE_URL 字符串,PostgreSQL 数据库 connection string
      • CIRCLECI_TOKEN 字符串
      • GITHUB_TOKEN 字符串,可选

TODO

  • PDF 目录
  • 有些 hard-coded 的部分可以改进

os-lectures-build's People

Contributors

dramforever avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.