-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sepal Buttons/Icons #108
Comments
I'd prefer not to use inline images for the following reasons:
let me know what you think, and we'll adapt the documentation instructions |
hmm, that's would be a real pity imho
|
Let's use democraty then ! |
A guideline must be found to maintain consistency throughout the documentation. Here is a summary of the issue: how to represent the SEPAL btn in the documentation? option 1: use the built-in btn role
option 2: use inline images
|
I've voted to use the fontawesome icons mainly because I do prefer vectorized objects instead of static ones. In my repo docs I've been using images and I think that using them requires more work (crop, save, resize, link). |
btn role is available in the main branch and documented in the build doc: https://docs.sepal.io/en/latest/team/contribute.html#btn |
btn role is nice, I am wondering if fore and background color can be actually set? p.s. sorry, I realize I am getting pedantic on this :) |
Issues are made for this no worries ;-)
I tried but that's complicated to setup (parsing the text, find the color, make sure it make sense, what do we do if the color is not set, or the icon is not set... ) it would have looke like this: |
I am starting to create screenshots of the SEPAL Button/Icons and will put them under _images/icons. They can be easily used within the RST by substitution as explained here: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#substitution-definitions
An example is:
Once logged into SEPAL, open the recipe menu (1) by clicking on the |recipes| button at the top left of the SEPAL start screen. Within the recipe menu (1), select CCDC, which opens a new SEPAL recipe tab (2).
.. |recipes| image:: ../_images/icons/recipes.png
:width: 4%
Note that width at 4% seems to be a good size for the image.
This is happening on the CCDC branch right now
The text was updated successfully, but these errors were encountered: