Giter VIP home page Giter VIP logo

join-bookwyrm's Introduction

Join Bookwyrm

Static page about the bookwyrm network

Development

After installing the required packages in your environment (or virtual environment), run the command ./bw-dev site:serve to serve the site directory with the Python HTTP local server. Then, every time you update the template files, run the command ./bw-dev site:compile from another terminal.

Translating the website

The translation system uses gettext, with .PO (source) and .MO (compiled) files.

Two commands are available for the translation. Both need a locale to work.

./bw-dev messages:generate <locale>

This command will extract the translation keys from the .html files stored in the templates/ directory, and create or update the .PO file for the locale. The locale files are located into the locale/ directory. You will need to and update that file with the right message translations.

./bw-dev messages:compile <locale>

This second command will compile the .PO file into the corresponding .MO file.

Adding a new BookWyrm instance

To add a BookWyrm instance to the list at /instances

  1. Fork this repository
  2. Update the list of instance URLs in instances.json (being careful to include a trailing slash)
  3. Run ./bw-dev site:compile
  4. Confirm the instance appears by running ./bw-dev site:serve
  5. Send in a pull request

join-bookwyrm's People

Contributors

alopix avatar angelodeluxe avatar badrihippo avatar chdorner avatar darkle avatar dependabot[bot] avatar gudzpoz avatar hueyy avatar joachimesque avatar mouse-reeve avatar msub2 avatar vicaplet 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.