Commit Graph

22 Commits

Author SHA1 Message Date
Inverle
5e9c3617ca Improve layout of documentation page and add search feature (#8247)
* Improve layout of documentation page and add search feature

Closes https://github.com/FreshRSS/FreshRSS/issues/7915, https://github.com/FreshRSS/FreshRSS/issues/5325

Also: anchor headings and fix building site locally

* Further improvements

* Set color of hyperlinks
* Consistent styling of close aside button across devices
* Mobile layout 600px -> 1200px
* Add suffix to docs `<title>`
    * Note: titles of pages probably need to be improved, since currently they are just derived from the names of the first heading on every page
* Add favicon

* Improve font

* Try to fix favicon not loading correctly on GH pages

* Use local font

* Attempt to fix GH pages

* Final improvements

* Copy to clipboard button
* Support for nojs search
* Dark mode
* Load search.json (200KB json) only on search input focus
* Keep scroll state of sidebar across navigations

* Clickable images and CSP

CSP so we avoid hotlinking resources and clickable images are useful for zooming on mobile for example

* Fix typos

* Disable Dark Reader extension if dark mode CSS is loaded

* Support internationalisation (via language dropdown)

* Add Gemfile.lock

* Make CI build work with the custom plugin

* Make menus closable with Esc

* Fix typos CI

* Suggestions

* Use `ruby/setup-ruby` action in workflow for installing and caching gems.

* Run build only when there are changes to `docs/`

See: https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows?versionId=free-pro-team%40latest&productId=actions#running-your-workflow-only-when-a-push-to-specific-branches-occurs

* Change font to `Open Sans`

* Increase line height

* Fix Liquid syntax error
2025-12-04 20:06:21 +01:00
Alexandre Alapetite
1c92d55917 Use native CSS instead of SCSS (#8241)
I was tired of having to handle the SCSS themes differently.
fix https://github.com/FreshRSS/FreshRSS/issues/7611
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/8200
Convert Ansum and Mapco themes from SCSS to native CSS.
The changes are actually quite limited (mostly changing the syntax of the variables and a few other things)
Require support for:
* https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Nesting
* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/Nesting_selector
* https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-mix

SCSS and SAAS tools and references are also removed.

Tests welcome.
The styles are left as individual CSS files as designed originally in SCSS. I expect proper HTTP caching and HTTP/2 to be sufficient instead of aggregating back to a single CSS, but might be done in another PR if needed.

At the same time, fixed the fact that we had various whitespace styles in our JSON files, in particular in those themes, sometimes with 2 spaces, or 4 spaces, or tabs. Use tabs everywhere as defined in editorconfig.

I would like to merge this one first to complete https://github.com/FreshRSS/FreshRSS/pull/8230

* RTLCSS stringMap
https://github.com/FreshRSS/FreshRSS/pull/8241#discussion_r2553175514
https://github.com/MohammadYounes/rtlcss/issues/108#issuecomment-347033134
2025-11-23 13:15:10 +01:00
Alexandre Alapetite
8abfb07dc1 Use recommended phpstan.dist.neon (#6892)
* Rename to phpstan.dist.neon

* gitignore phpstan.neon

* Update phpstan-next accordingly

* Fixes for PHPStan bleedingEdge
2024-10-14 09:36:15 +02:00
Alexandre Alapetite
91624037c7 Apache protect more non-public folders and files (#6881)
* Apache protect more non-public folders

* Also protect root

* Do the same for /p/

* Simplify Require all denied
In case of Apache 2.2, it will just make an error 500 instead of 403

* .htaccess.dist

* Simplify

* Better comment
2024-10-11 09:25:43 +02:00
Alexandre Alapetite
76cbfadcdf Fix types for extensions (#5901)
* Fix types for extensions
To accompany https://github.com/FreshRSS/Extensions/pull/185

* Avoid bug redeclared function
2023-11-24 14:50:03 +01:00
maTh
9af1c1ca1b Update .gitignore: ignore the directory data.back (#5359)
* Update .gitignore

* Update .gitignore
2023-04-30 21:16:32 +02:00
Alexandre Alapetite
866ee41d2f i18n en-US (#4519) 2022-08-22 12:12:59 +02:00
Alexandre Alapetite
9ca49408e0 GitHub Action automatic tests (#3920)
* PHP lint + phpunit + Manipulate translations + phpcs
* eslint + markdownlint + rtlcss + stylelint
* shellcheck + shfmt + hadolint
2021-10-24 00:14:12 +02:00
Alexandre Alapetite
b438d8bb3d ESLint upgrade from JSHint (#3906)
* ESLint upgrade from JSHint
* commit corresponding package.json
* `npm run fix` for automatic JS and CSS fixes
* Keep JSHint config for now
2021-10-21 11:44:03 +02:00
Alexandre Alapetite
9219002953 Fix some wrong new line formats (#3742)
And exclude `*.cache` for `.phpunit.result.cache`.
2021-08-04 11:38:10 +02:00
Alexandre Alapetite
cdbf401cca More gitignore and dockerignore (#2844)
Add to gitignore and dockerignore some additional files created by the
different tests we have
2020-03-24 15:31:14 +01:00
Marien Fressinaud
6bc963569b tec: Add a test target to Makefile (#2725)
* tec: Add a test target to Makefile

Minor edit put php7-phar on third line

I try to keep on the third line the Alpine-specific PHP extensions (i.e.
that are not by default in Ubuntu), and in alphabetic order

Co-Authored-By: Alexandre Alapetite <alexandre@alapetite.fr>

* Allow to run make test without Docker
2019-12-29 13:55:45 +01:00
Thomas Guesnon
086fa0d49a Two themes (#2245)
* Two new themes

* update gitignore

* dirs cleaning + mobile ui improvements

* name added to credits file

* New line
2019-02-13 11:37:37 +01:00
Nicola Spanti
942508d879 Minor changes (#1747) 2017-12-21 17:20:52 +01:00
Alexandre Alapetite
152a6a9bdc Customisable constants.local.php (#1725)
https://github.com/FreshRSS/FreshRSS/issues/1562
https://github.com/FreshRSS/FreshRSS/issues/1607
https://github.com/FreshRSS/FreshRSS/pull/1656
https://github.com/FreshRSS/FreshRSS/issues/1705
https://github.com/FreshRSS/FreshRSS/pull/1712
2017-12-16 22:48:46 +01:00
Marien Fressinaud
abb25a58dc Fix issue #86 : possibilité de changer de thème
Désormais il est possible de créer des thèmes. Le thème peut être changé
sur la page de configuration. Les thèmes sont détectés grâce à un
fichier metadata.json détaillant le nom du thème, son auteur, une petite
description et une version.

Un nouveau thème "Flat design" a été ajouté et est pleinement
fonctionnel
2013-08-07 11:46:55 +02:00
Marien Fressinaud
fb5e5594be Fix issue #82 : ajout direct de Minz sans devoir faire appel au script ./build.sh 2013-06-14 20:53:12 +02:00
Marien Fressinaud
6ce2b575eb Fix issue #59 : ajout des répertoires vides, obligatoires pour le fonctionnement de FreshRSS 2013-04-17 18:30:14 +02:00
Marien Fressinaud
e58fb411f9 Corrections fichier install.php pour qu'il soit plus portable 2013-04-14 19:26:52 +02:00
Marien Fressinaud
cae1efd552 Corrections quelques bugs + modif fichier config BDD + ajout fichier build.sh pour générer la lib Minz 2013-03-02 00:36:12 +01:00
Marien Fressinaud
61b87b1474 Modif du fichier README + l'application s'appellera désormais FreshRSS 2012-10-28 11:49:21 +01:00
Marien Fressinaud
fb57be5a5a First commit 2012-10-21 18:47:57 +02:00