Skip to content

Commit 788519b

Browse files
mindronesConduitry
authored andcommitted
Site: use pure javascript slugification library
This library doesn't support languages but it has only 2 dependencies being free from native dependencies Closes #2508
1 parent e0bebb5 commit 788519b

File tree

6 files changed

+131
-204
lines changed

6 files changed

+131
-204
lines changed

site/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ BASEURL=http://localhost:3000
2929

3030
Anchors are automatically generated using headings in the documentation and by default (for the english language) they are latinised to make sure the URL is always conforming to RFC3986.
3131

32-
If we need to translate the API documentation to a language using unicode chars, we can setup this app to export the correct anchors by setting up `SLUG_PRESERVE_UNICODE` to `true` and `SLUG_LANG` to the ISO 639-1 two-letter language code of your choice in `config.js`.
32+
If we need to translate the API documentation to a language using unicode chars, we can setup this app to export the correct anchors by setting up `SLUG_PRESERVE_UNICODE` to `true` in `config.js`.

site/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export const SLUG_PRESERVE_UNICODE = false;
22
export const SLUG_SEPARATOR = '_';
3-
export const SLUG_LANG = 'en';

site/package-lock.json

Lines changed: 46 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)