Skip to content
Snippets Groups Projects
README.md 1.74 KiB
Newer Older
  • Learn to ignore specific revisions
  • Malin Freeborn's avatar
    Malin Freeborn committed
    # Configurations and Templates
    
    
    These config files make the BIND RPG books look and act the way they do.
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    # Dependencies
    
    - `inkscape`
    - `make`
    - `texlive-most`
    - `git-lfs`
    - (optional) `imagemagick`
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    # Usage
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    To make a book, start a git, then do:
    
    ```bash
    git submodule add https://gitlab.com/bindrpg/config config
    git commit -m"add config submodule"
    cp config/main.tex config/.gitignore .
    ```
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    Edit 'main.tex', and input your tex files by writing `\include{my_file.tex}`.
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    # Docs
    
    
    You can create the [documentation][docs] with
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    ```bash
    make docs
    ```
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Test your changes before committing with:
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    ```bash
    make test
    ```
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    ## Issues
    
    If you find issues, raise it on the [issues board][issues board], or [email][issues email] the issue.
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    # TeXnical Details
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    This thing's handled as a submodule in the other documents, so changing it will change all BIND books.
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    Any changes to the master branch should be tested in the `core` and `aif` projects first.
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    And when pulling, remember to do:
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    ```bash
    git pull --recurse-submodules
    ```
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    # Docker
    
    Docker builds the books with a Gitlab pipeline, to check they compile properly.
    
    Docker also lets people build the book with docker from anywhere.
    List any BIND books you want, and build them locally like this:
    
    ```bash
    books="core oneshot stories"
    docker run -it --rm --name texbooks andonome/texbind gimme $books
    ```
    
    
    [docs]: https://gitlab.com/bindrpg/config/-/jobs/artifacts/master/raw/docs.pdf?job=build
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    [rules]: https://gitlab.com/bindrpg/config/-/jobs/artifacts/master/raw/booklet.pdf?job=build
    
    [cs]: https://gitlab.com/bindrpg/config/-/jobs/artifacts/master/raw/character_sheets.pdf?job=build
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    [issues board]: https://gitlab.com/bindrpg/config/-/issues/
    [issues email]: contact-project+bindrpg-config-16527104-issue-@incoming.gitlab.com