Thème pour le forum des acteurs de l'inclusion.
- Sass
- Discourse
- discourse_theme
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:
- 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.
- On your forum (say it's running on
http://localhost:3000
)- if it's itou-discourse, run it with
make run
- create a new API key. It should be a User API key, NOT a global API key.
- if it's itou-discourse, run it with
- 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.
You can autoformat the styles using scssfmt
. You can install it with yarn
, then run:
./node_modules/scssfmt/cli.js scss/**/*.scss
- Import the theme in the admin panel (in
admin/customize/themes
) by providing this Git repository - More info in the official documentation
If you are getting started making a discourse theme, I’ve found these links to be useful:
- Developper’s Guide to Discourse Themes
- The pluginApi source code
- Designer’s Guide to Discourse Themes
- Beginners’ guide to using Theme Creator and Theme CLI to start building a Discourse theme
- Structure of themes and theme components
- How to add custom content that only appears on your homepage
- Splitting up theme SCSS into multiple files
- Splitting up theme Javascript into multiple files
- On customizing specific categories: A and B. (I mostly want to ensure something is clear: I’m innocent, they made me do it.)
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GPL License. See LICENSE
for more information.
Project Link: https://github.com/betagouv/itou-theme-discourse