[why]
Often it is easier to find what one wants if the search result is
sorted.
[how]
Do a full result sort.
* Sort by id (class name)
* Put removed icons last
We do not need the boost function anymore, so that pre-sorting is
removed.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
Sometimes one does not know what the exact search term is.
For example if you want to find a 'homefolder' but the name is
'homedirectory' it is impossible to find.
[how]
Allow prefix search, in this case at least 'home' will find both
variants.
I do believe a full substring search would be even better, but that is
not supported by minisearch.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
After the last bullet point closing the <div> seems problematic and
results in a bit of garbage in the html page.
[how]
Just use the dashes as we historically used instead.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
I think the `</div> </details>` at the end of the v3.0.1 release notes was being parsed as part of the last `<li>` item, resulting in `</div> </details>` being escaped. This commit should fix the issue where in the HTML output, the v3.0.1 release `<details>` included the release notes for v3.0.0, v2.3.3, etc.
[why]
There are 2.9 rows of icons shown.
This looks rather odd, with the last (3rd) row having their bottoms
removed.
[how]
Show instead 3.1 rows. This gives a visual hint to the user that
scrolling is possible (because the tops of the 4th row are shows), and
looks better with only 3 rows.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This step adds just the stuff generated via script in the master branch.
See pairing commit in the gh-pages branch:
Date: Wed May 3 17:54:44 2023 +0200
generate-css: Create cheat sheet with removed icons
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Update the cheat sheet to v3.0.0 but also show the removed icons of
v2.3.3. That style is .nfold (read: nf-old) and it is just hacked in.
I believe it can be removed later on, with 3.1.0 or something at least.
We also need the old (removed) icons as a font to display them despite
being removed. A small helper script 'archives' just the dropped glyphs
into a new webfont.
The script can be removed afterwards, this is a single run, archiving
the dropped after v2.3.3 icons.
See pairing commit in master branch:
Date: Wed May 3 17:54:44 2023 +0200
generate-css: Create cheat sheet with removed icons
[note]
Also remove unused `nerd-fonts-generated.css`, wich confuses me every
time. It's sufficient to have it in the master branch for people, we do
not use it here.
f
[why]
When people want to use the Symbols-Only webfont that we use for the
website directly (without hosting the css/woff files themselves) they
probably need a stub to access our css.
I have no clue what consequences this has for our traffic, and probably
we need to remove this if problems come up.
Origin of this is a request via gitter:
Mikle-Bond (Michael)
Hello! I have a request about webfont. Can you make the
nerd-fonts-generated{,.min}.css files available via
https://www.nerdfonts.com/assets/css/ ? So that users could
reference them directly and have SymbolsOnly variant of the
font with classes names.
I have found this [not linked here] message from a month ago,
[in fact 2 years and 1 month] and my request could help that
person too. They were having problem, as nerd-fonts-generated.css
is only available via githubusercontent.com at the moment, and
it doesn't point correctly to the font file. But it does so for
nerdfonts.com website, after it gets bundled into combo.css.
[how]
Make nerd-fonts-generated.min.css availabe directly as
https://www.nerdfonts.com/assets/css/webfont.css.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
After the glyph name fix done with commit
7e2d38b55 Fix some glyph names
we need to update the actual cheat sheet and CSS files.
[how]
Manually commit data from `generate-css.sh` run here.
Related: #1147
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The (old) Material Design Icons are to be removed.
We should communicate that on the Cheat Sheet.
[how]
Add class that displays a red top-right triangle with text.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
A lot of the previews used some fallback font.
[how]
The generator script has been fixed in 'master'.
Now pushing the changed previews here.
Note: Because of some name changes we need to update the fonts.json too.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
Update from main repo to gh-pages was broken or is manual.
Changed update script.
[how]
Let script (new) run manually. To see if it works.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
Makes it even more easy to use, as the '\u' prefix seems to be quite
standard, e.g. for 'echo', 'printf', and even RFC4627.
Reference: #1059
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
We removed the functionality with the previous commit and replaced it
with 'copy the UTF16 code' (needed for codepoints > u_FFFF).
But people might want to have the possibility to easily (by click) copy
the codepoint hex number.
[how]
Add highlighting on the hex number and allow clicking to copy the value.
[note]
The tooltip will be added in the cheat-sheet generator.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
For people using JSON they need the UTF16 codes.
While 4-digit values are no problem the new Material Design Icons code
can not be used.
[how]
Copy the UTF16 values instead of the full codepoint value (as hex
string).
Fixes: #1059
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>