Skip to content

incubateur-territoires/discourse-theme

 
 

Repository files navigation

Theme ITOU Discourse

Thème pour le forum des acteurs de l'inclusion.

Built With

Getting Started

This is a discourse theme, you'll want to check the official documentation.

To get a local copy up and running or to use this in production, follow these simple steps:

Prerequisites

  • You need to have a discourse forum where you are admin in order to add this theme.
  • It's best to have the [discourse_theme](https://github.com/discourse/discourse_theme) gem installed on your local machine in order to ensure a smooth development experience. This tool watches for changes in your local repository and updates the theme in consequence.

Local development:

  • On your forum (say it's running on http://localhost:3000)
  • clone this project on your machine (say you clone it in /home/itou/theme-itou-discourse)
  • configure discourse_theme, by providing:
    • your forum URL
    • your API key
  • run discourse_theme watch /home/itou/theme-itou-discourse
  • if you want to see the mobile view, go to http://localhost:3000?mobile_view=1

Now, every change made to the theme will be updated on the forum. If changes are not picked up, you may need to ensure the right theme is being used.

Formatting

You can autoformat the styles using scssfmt. You can install it with yarn, then run:

./node_modules/scssfmt/cli.js  scss/**/*.scss

Production

  • Import the theme in the admin panel (in admin/customize/themes) by providing this Git repository
  • More info in the official documentation

Documentation

If you are getting started making a discourse theme, I’ve found these links to be useful:

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GPL License. See LICENSE for more information.

Contact

Project Link: https://github.com/betagouv/itou-theme-discourse

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 65.4%
  • JavaScript 17.3%
  • Handlebars 16.8%
  • HTML 0.5%