Project managing the Pillar Server project
Recent Commits
Commit | Author | Details | Committed | ||||
---|---|---|---|---|---|---|---|
d0e12401c001 | Francesco Siddi (fsiddi) | Introduce support for confidence calculations | Nov 26 2018 | ||||
411a6f75c5e2 | Francesco Siddi (fsiddi) | Change default comments sorting | Nov 26 2018 | ||||
07821c7f97ba | Tobias Johansson (mutze) | Timeline Firefox bug fix: load more not working properly | Nov 23 2018 | ||||
64b4ce3ba9c5 | Pablo Vazquez (pablovazquez) | Minor layout and style adjustments. | Nov 22 2018 | ||||
72417a9abbeb | Pablo Vazquez (pablovazquez) | Minor layout and style adjustments. | Nov 22 2018 | ||||
6ae9a5ddeb2a | Tobias Johansson (mutze) | Quick-Search: Added Quick-search in the topbar | Nov 22 2018 | ||||
a897e201ba7a | Tobias Johansson (mutze) | Timeline Fix: Attachment in post did not work | Nov 22 2018 | ||||
3985a00c6f75 | Pablo Vazquez (pablovazquez) | Timeline: Style and layout adjustments | Nov 21 2018 | ||||
119291f817c2 | Pablo Vazquez (pablovazquez) | Timeline: Remove header and lead from posts. | Nov 21 2018 | ||||
801cda88bfce | Pablo Vazquez (pablovazquez) | Project View: Labels for sections | Nov 21 2018 | ||||
fc99713732e6 | Tobias Johansson (mutze) | Project-Timeline: Introduced timeline on projects | Nov 20 2018 | ||||
1d909faf494e | Pablo Vazquez (pablovazquez) | CSS: Override margin-bottom for emoji images. | Nov 16 2018 | ||||
ed35c543617f | Pablo Vazquez (pablovazquez) | CSS: Fix alignment on list with custom bullets. | Nov 16 2018 | ||||
411b15b1a07c | Francesco Siddi (fsiddi) | Pin versions in package.json | Nov 16 2018 | ||||
9b85a938f387 | Francesco Siddi (fsiddi) | Add npm deps: acorn and glob | Nov 16 2018 |
README.md
Pillar
This is the latest iteration on the Attract project. We are building a unified framework called Pillar. Pillar will combine Blender Cloud and Attract. You can see Pillar in action on the Blender Cloud.
Custom fonts
The icons on the website are drawn using a custom font, stored in [pillar/web/static/font](pillar/web/static/font). This font is generated via Fontello by uploading [pillar/web/static/font/config.json](pillar/web/static/font/config.json).
Note that we only use the WOFF and WOFF2 formats, and discard the others supplied by Fontello.
After replacing the font files & config.json, edit the Fontello-supplied font.css to remove all font formats except woff and woff2. Then upload it to css2sass to convert it to SASS, and place it in [src/styles/font-pillar.sass](src/styles/font-pillar.sass).
Don't forget to Gulp!
Installation
Make sure your /data directory exists and is writable by the current user. Alternatively, provide a pillar/config_local.py that changes the relevant settings.
git clone git@git.blender.org:pillar-python-sdk.git ../pillar-python-sdk pip install -e ../pillar-python-sdk pip install -U -r requirements.txt pip install -e .
HDRi viewer
The HDRi viewer uses Google VRView. To upgrade, get those files:
and place them in pillar/web/static/assets/vrview. Replace images/loading.gif in embed.min.js with static/pillar/assets/vrview/loading.gif.
You may also want to compare their index.html to our src/templates/vrview.pug.
When on a HDRi page with the viewer embedded, use this JavaScript code to find the current yaw: vrview_window.contentWindow.yaw(). This can be passed as default_yaw parameter to the iframe.
Celery
Pillar requires Celery for background task processing. This in turn requires a backend and a broker, for which the default Pillar configuration uses Redis and RabbitMQ.
You can run the Celery Worker using manage.py celery worker.
Find other Celery operations with the manage.py celery command.
Elasticsearch
Pillar uses Elasticsearch to power the search engine. You will need to run the manage.py elastic reset_index command to initialize the indexing. If you need to reindex your documents in elastic you run the manage.py elastic reindex command.
Translations
If the language you want to support doesn't exist, you need to run: translations init es_AR.
Every time a new string is marked for translation you need to update the entire catalog: translations update
And once more strings are translated, you need to compile the translations: translations compile
*To mark strings strings for translations in Python scripts you need to wrap them with the flask_babel.gettext function. For .pug templates wrap them with _().*