Giter Club home page Giter Club logo

white-paper's Introduction

tea

The tea white paper is a semantically versioned, Markdown document with mathematical representations embedded as LaTeX. New releases are compiled to .pdf with Pandoc before being published here at GitHub.

tea/white-paper 1.0.5

Contributing

If you have general feedback, please open a discussion thread.

If you have edits please refer to our project-wide contribution guidelines. Then you can either:

  1. Edit white-paper.md right here on GitHub. When you submit your pull request our CI will attach the pdf to the PR.
  2. Or you can build the white paper on your own computer:
    make   #=> ./tea.white-paper.pdf

Dependencies

Source these yourself or use tea: sh <(curl tea.xyz).

Project Version
pandoc.org ^2.18
pandoc.org/crossref ^0.3
gnome.org/librsvg ^2.54
gnu.org/make ^4

Translate

We build, publish and feature full PDFs of all translations at tea.xyz.

  1. Fork teaxyz/white-paper

  2. Then in your terminal:

    $ export LANG=…          # https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
    $ export USER=…          # your github
    $ export VERSION=$(git describe --abbrev=0) # latest version tag  
    $ git clone https://github.com/${USER}/white-paper tea-white-paper
    …
    $ cd tea-white-paper
    $ git checkout -b i18n/${LANG} ${VERSION}
    …
    $ mkdir -p i18n/${LANG}
    $ cp white-paper.md metadata.yml i18n/${LANG}
  3. Translate ./i18n/${LANG}/metadata.yml

  4. To ./i18n/${LANG}/metadata.yml append:

    lang: …       # https://pandoc.org/MANUAL.html#language-variables
    dir: ltr      # language direction; ltr:left-to-right or rtl:right-to-left
    header-includes:
      - \fancyfoot[L]{${VERSION}+${LANG}}   # expand these variables!
    translator:
      - Your Fullname

    ⚠️ Chinese, Japanese, and Korean languages only. Please also add the following to the metadata.yml:

    header-includes:
      - \usepackage{xeCJK}
      - \setCJKmainfont{Noto Serif CJK XX} # where XX can be SC, TC, HK, JP, KR https://github.com/googlefonts/noto-cjk
  5. Translate ./i18n/${LANG}/white-paper.md

  6. Commit translation to git and push to GitHub:

    git add i18n/${LANG}/*
    git commit -m "add ${LANG} translation"
    git push origin i18n/${LANG}
  7. Create a pull request:

    open https://github.com/teaxyz/white-paper/compare/main...${USER}:white-paper:i18n/${LANG}
  8. (Optional) Preview your work:

    make tea.white-paper_${LANG}.pdf

Maintenance

Set Version

echo "- \fancyfoot[L]{$1}" >> metadata.yml

white-paper's People

Contributors

jhheider avatar mxcl avatar mfts avatar thomas-borrel avatar artburkart avatar and-ri avatar xercesblu3 avatar keithbm1 avatar civiel024 avatar marcosjcarbonell avatar lovecity08 avatar jlowlansky avatar ruslankhvan avatar

Watchers

 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.