0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-25 09:09:35 +01:00
Commit Graph

5 Commits

Author SHA1 Message Date
Luca Bonavita
c8b2941d81 Support slug translations in the API docs
- implement a unicode-preserver processor and a latinizer processor via limax.

  The latinizer will maintain the case and the dollar sign so that we get anchors like:
  - #$set
  - #afterUpdate
  - #createEventDispatcher

- config.js:

  - use SLUG_PRESERVE_UNICODE to true to build the site so that anchors in /docs preserve unicode chars (for languages like cyrillic)
    (see test/utils/slug.js)

  - use SLUG_SEPARATOR to easily update slugs in /docs

  - use SLUG_LANG to set up the language to translate unicode symbols in anchors:
    - de: 'Ich ♥ Deutsch' -> 'ich-liebe-deutsch'
    - en: 'Ich ♥ Deutsch' -> 'ich-love-deutsch'

Fixes #2344
2019-04-17 00:42:53 +01:00
Conduitry
7fa7f200d1 site: mention PUBLISH env variable in readme 2019-02-22 00:22:13 -05:00
Conduitry
ca6ab95ea4 site: update readme with simplified version=local instructions 2019-01-19 16:28:52 -05:00
Conduitry
7bc461f6ee site: update readme and tidy package.json 2019-01-09 11:29:25 -05:00
Rich Harris
29052aba7d
Bring svelte.technology source into main repo 2018-12-22 16:09:27 -05:00