Git Product home page Git Product logo

tweego-docker's Introduction

tweedevs/tweego

Tweego, is a command line compiler for Twine/Twee story formats, written in Go. Now on Docker!

Supported Architectures

Our images support multiple architectures such as x86-64, arm64 and armhf. We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Prerequisities

In order to run this container you'll need docker installed.

docker-compose

Compatible with docker-compose v2 schemas.

version: "2.1"
services:
  tweego:
    image: tweedevs/tweego
    container_name: tweego
    environment: 
      # Optional: Default is index.html
      - TWEEGO_FILE=index.html
      # Optional: You can add any additional option https://www.motoslave.net/tweego/docs/#usage-options
      - TWEEGO_OPTIONS=-l --log-files
    volumes: 
      # All volumes are required. There are NO story formats included.
      - path_to_your_project_src:/input
      - path_to_where_you_want_the_file:/output
      - path_to_your_storyformats:/storyformats

docker run

#Linux
docker run -it -rm \
  -e TWEEGO_FILE=your_file_name.html \
  -v your_path_to_story_formats:/storyformats \
  -v your_path_to_the_twee_files:/input \
  -v your_path_to_the_where_you_want_the_result:/output \
  tweedevs/tweego # You can include options here to pass to tweego
# Windows Powershell
docker run -it -rm `
  -e TWEEGO_FILE=your_file_name.html `
  -v your_path_to_story_formats:/storyformats `
  -v your_path_to_the_twee_files:/input `
  -v your_path_to_the_where_you_want_the_result:/output `
  tweedevs/tweego # You can include options here to pass to tweego

Getting into the shell

Get a shell started in the container:

docker run -it -rm --entrypoint /bin/sh tweedevs/tweego

Environment Variables

  • TWEEGO_FILE - The you want applied to tweegos output file. Default is index.html
  • TWEEGO_OPTIONS - Enables passing options to tweego. Deafult is blank.

Volumes

  • /storyformats - Story format location, to learn more the wiki or Twine Lab, format-catalog is a project that works on cataloguing them all.
  • /input - where you have the source .twee/.tw files you want to compile.
  • /output - where you want the file to saved to.

You may want to create volumes if you're devoloping locally to shorten the command:

#Linux
docker volume create --driver local \
  --opt type=none \
  --opt device=your_path_to_story_formats \
  --opt o=bind \
  storyformats
docker volume create --driver local \
  --opt type=none \
  --opt device=your_path_to_the_twee_files \
  --opt o=bind \
  input
docker volume create --driver local \
  --opt type=none \
  --opt device=your_path_to_the_where_you_want_the_result \
  --opt o=bind \
  output
# Windows Powershell
docker volume create --driver local `
  --opt type=none `
  --opt device=your_path_to_story_formats `
  --opt o=bind `
  storyformats
docker volume create --driver local `
  --opt type=none `
  --opt device=your_path_to_the_twee_files `
  --opt o=bind `
  input
docker volume create --driver local `
  --opt type=none `
  --opt device=your_path_to_the_where_you_want_the_result `
  --opt o=bind `
  output

Useful File Locations

  • /bin/tweego - tweego executable location, if you are in shell you can call it as a command tweego

Find Us

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Unlicense - see the LICENSE.md file for details.

Acknowledgments

  • Thomas M. Edwards - Creater of Tweego and the story format Sugarcube.
  • Chapel - Twine ethusiast with a knack for creating useful things for authors.
  • Twine Games Discord - great place for all things Twine related.

Changelog

TODO: automate this.

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.