Commit Graph

12 Commits

Author SHA1 Message Date
Ayaz Hafiz
f5c782f321 fixup! Ensure that doc url hash IDs are scrolled to on page load 2021-08-17 21:55:26 -05:00
Ayaz Hafiz
bf47fc17a3 Ensure that doc url hash IDs are scrolled to on page load
I broke this a few weeks ago so I'll fix it

Demo: https://5f0fa445faca4aff5f580029--naughty-borg-09b903.netlify.app/?version=master&search=#brace_style
2021-08-17 21:55:26 -05:00
Ayaz Hafiz
3195d6c2b7 docs: Preserve updated query param content and add config option links
- Preserve search and version parameter updates in the url
- Render headings with an anchor to itself for easier linking to config
  options, variants, etc.

Demo: https://5efeb81ca3f0d.htmlsave.net/
2021-08-17 21:55:26 -05:00
asrar
31c97ce0f0 Adds query param for version no (#4270)
* Adds query param for version no

This adds support for using a query parameter for selecting the version no

* Adds error handling to configuration request

Catch request exception in case fetching the configuration from the url fails, this can happen either if non existent version number is passed in or because of server issues.

* Makes version selection better

Covers a few common cases in which the version number can be specified.
2021-08-17 21:55:26 -05:00
asrar
c5f1d9698e Adds direct linking using header ids (#4272)
Separates out search and direct linking, uses header ids for direct linking and `?search=term` for filtering configurations.
Once the app mounts the page is scrolled to the current header set in the url hash.
2021-08-17 21:55:26 -05:00
hafiz
1045c62ac1 Add github-style highlighting for code blocks (#4224) 2021-08-17 21:55:26 -05:00
Ayaz Hafiz
916c238103 fixup! Show configs from different versions on github pages 2021-08-17 21:55:26 -05:00
Ayaz Hafiz
6959d03a3a Show configs from different versions on github pages
See https://gushiermainecoon.htmlpasta.com/ for a demo of this change.

Part of #4178
2021-08-17 21:55:26 -05:00
Ayaz Hafiz
667a2da7af Fix stable toggle on gh pages configuration site
A demonstration of the fix is included in the PR associated with this
commit.
2021-08-17 21:55:26 -05:00
Alexander Melentyev
71f01d1974 Delete spaces 2021-06-21 12:11:37 +03:00
rchaser53
591b562bcf use filter by hash when first rendering 2019-04-22 23:50:44 +09:00
rChaser53
77924a9e44 create GitHub page for Configuration.md (#3485) 2019-04-10 05:57:16 +09:00