Simon Legner
a905bdf5c1
Prettier.io
1 year ago
decaffeinate
c237856902
decaffeinate: Run post-processing cleanups on app.coffee and 75 other files
1 year ago
decaffeinate
e4fbca722b
decaffeinate: Convert app.coffee and 75 other files to JS
1 year ago
decaffeinate
6cc430ffc4
decaffeinate: Rename app.coffee and 75 other files from .coffee to .js
1 year ago
Simon Legner
5c6d93f61b
ruby: fix "show source"
...
Fixes #1922 .
2 years ago
Simon Legner
7e0dacb92b
Settings: disable autofocus of search input
...
Fixes #1856 .
2 years ago
Simon Legner
61ab7f6cec
Remove FastClick library
...
From https://github.com/ftlabs/fastclick/blob/main/README.md
> Note: As of late 2015 most mobile browsers - notably Chrome and Safari - no longer have a 300ms touch delay, so fastclick offers no benefit on newer browsers, and risks introducing bugs into your application. Consider carefully whether you really need to use it.
3 years ago
Shashank Jain
a2a1733fcc
Applied seconds input settings patch
4 years ago
Shashank Jain
7932a457af
Added a checkbox to enable scroll by space
4 years ago
Simon Legner
c0ddcf3469
Shortcut to copy URL of original page (alt + C)
...
Fixes #1199 .
4 years ago
Enoc
2824f75cd5
Fix sidebar when the mouse leave the window
4 years ago
Jed Fox
2beb46db42
Add mobile override mode
...
Fixes #1157
5 years ago
Jed Fox
e8b1359665
Switch to radio buttons for theme picker, only allow auto setting where supported
5 years ago
Simon Legner
0700f2d833
Add support for prefers-color-scheme media query
5 years ago
Stefan Selent
ea57487453
Extract the right target for clicks on nested elements
6 years ago
Jasper van Merle
22094f7dcf
Fix #1049
6 years ago
Jasper van Merle
be0b8190e4
Merge branch 'master' into dynamic-favicon
6 years ago
Jasper van Merle
8aa8ae1035
Fix merge conflicts
6 years ago
Jasper van Merle
5438143cf8
Fix merge conflicts
6 years ago
Jasper van Merle
1c007d8826
Fix merge conflicts
6 years ago
Jasper van Merle
e684e8cb75
Merge pull request #831 from jmerle/fix-829
...
Hide sidebar when mouse is outside the window
6 years ago
Jasper van Merle
6138f05bd7
Merge pull request #1022 from jmerle/service-worker
...
Replace the App Cache with a Service Worker
6 years ago
Jasper van Merle
c28305b0b7
Implement review suggestions
6 years ago
Jasper van Merle
576f32dae1
Make service worker opt-in in development
6 years ago
Jasper van Merle
0e9aa8847b
Add preference to bypass service worker cache
6 years ago
Jasper van Merle
8ed1f4ace1
Replace AppCache with a service worker
6 years ago
Jasper van Merle
d63487d973
Simplify layouts array
6 years ago
Jasper van Merle
35f6f719e3
Load layout preferences client-side from cookies
6 years ago
Jasper van Merle
6893ac9514
Merge branch 'master' into fix-829
6 years ago
Jasper van Merle
66a0b82e3c
Ask for consent before enabling Google Analytics and Gauges
6 years ago
Jasper van Merle
c36478ce82
Set favicon to the icon of the currently shown docs
6 years ago
Jasper van Merle
d640a8ee22
Set favicon to documentation icon on open
6 years ago
Jasper van Merle
c6f0f1693f
Limit new event listener to Chrome for Android
6 years ago
Jasper van Merle
c27868debc
Simplify re-triggering search after scope change
6 years ago
Jasper van Merle
8039610888
Remove scope by clicking on it or by backspacing into it
6 years ago
Jasper van Merle
504f95e4f4
Fix single documentation search on Android
6 years ago
Thibaut Courouble
e64cfcfb64
Add confirmation to "Uninstall all" action
...
Closes #913 .
6 years ago
Thibaut Courouble
a8a97e0198
Preserve path when reloading the app
...
Fixes #849 .
6 years ago
Thibaut Courouble
e8d52c9cfd
Fix app cache not updating when changing the app's color theme
...
This is needed because the index page is part of the app cache, and the <html> tag has a different class depending on the theme.
6 years ago
Jed Fox
a30fcf9d9a
Switch from SASS variables to CSS variables
...
* Switch from SASS variables to CSS variables for most styling
These are the simple cases, and the more complex ones will be covered by future commits. I’ve also replaced $fooZ ± 1 with the appropriate variable to avoid a runtime `calc()`.
* Eliminate the `$style` variable 🔥
I’ve added a `--absolute` variable that’s `white` in dark mode and `black` in regular mode.
* Remove `$inputFocusBorder` 🔥
* Switch the Prism styles to CSS variables
* Convert `$mediumScreen` to a mixin
* 🔥 `$selectionText`
* Eliminate the final uses of SCSS variables
I’ve dropped the 95% opacity on the background of the method source code overlay in RDoc since the difference isn’t noticeable but it makes implementation a lot easier.
* Misc fixes
* Extract the common variables from the two themes to a new file
* Remove illegal usages of CSS variables in SCSS functions
This flattens out the buttons on the settings page which makes the styles simpler (and more modern-looking IMO) and removes the box-shadow on the button, which was completely invisible to me.
* Fix usages of SCSS functions in CSS variables
* Use `html._theme-*` selectors
* Eliminate `application-dark.css`; switch themes by toggling classes
This also means that the Application Cache doesn’t have to get updated when toggling themes, and a new CSS file that’s nearly the same doesn’t need to be downloaded.
6 years ago
Thibaut Courouble
7d3c6bd970
Force HTTPS
6 years ago
Jasper van Merle
85f57fe5d0
Add option to automatically download documentation
6 years ago
Natnael Getahun
1bc380f12d
Add DuckDuckGo shortcut
...
Added an alias ```alt + d``` to be DuckDuckGo shortcut
7 years ago
Grant Bourque
d657377d1c
Use `document.scrollingElement` for mobile scrolls
...
- Set `document.scrollingElement` as the scrolling element
for scrolling to anchors when the app is mobile mode
to enhance support in newer browsers.
The CSS View Module spec considers `document.documentElement`/`<html>`
to be the standard scrolling element
and that is what appears to be used in the latest Firefox and Chrome.
However, some older browsers and even the current Safari
use `document.body` as the scrolling element
which is why I suspect the original code used `document.body`.
Since some browsers scroll on different elements,
`document.scrollingElement` exists
so the browser can tell us what to use
for scrolling to anchors work for all modern browsers.
Since `document.scrollingElement` is undefined in older browsers,
`document.body` is available as fallback mobile scrolling element.
7 years ago
Jasper van Merle
4b12335b19
Fix #829
7 years ago
Jed Fox
a5b6ffb116
Move “DevDocs” in the tab title to after the dynamic portion of the title
7 years ago
Grant Bourque
d5d913fc11
Use browser dimensions for mobile detection
...
- Use `max-width`/`max-height` mobile detection media queries
instead of `max-device-width`/`max-device-height`.
Some browsers inaccurately report the device dimensions
and get the mobile version of the DevDocs unexpectedly.
Not depending on the device dimensions also improves the experience
by displaying the mobile version
if a desktop browser window is sufficiently small enough.
7 years ago
Thibaut Courouble
d48396de57
DevDocs → freeCodeCamp
7 years ago
Thibaut Courouble
a379b6299d
Ask all HTTP users to switch to HTTPS
7 years ago
Thibaut Courouble
76aec2bd95
Don't reset to root page when clearing the search field
...
Closes #718 .
7 years ago
Thibaut Courouble
cbfc73951b
Improve Help page
...
Closes #676 .
7 years ago
Thibaut Courouble
9cce390ead
Fix alt+o shortcut not preventing default in Firefox
7 years ago
Thibaut Courouble
44e6316100
Add ability export/import preferences
...
Closes #671 .
7 years ago
Thibaut Courouble
64f04305d3
Replace all remaining PNG UI icons with SVGs
7 years ago
Thibaut Courouble
e212f62e89
Fix issue when hitting left-arrow keyboard shortcut on a disabled and unversioned doc
7 years ago
Thibaut Courouble
30dd32c1b5
Normalize event.target for old browsers incorrectly handling SVG elements
7 years ago
Thibaut Courouble
53f666a742
Use parentNode instead of parentElement as the latter doesn't work on SVG elements in some browsers
7 years ago
Thibaut Courouble
8d0606d070
Fix OpenJDK entry breaking keyboard navigation in the sidebar
8 years ago
Thibaut Courouble
d7001c2eb5
Optimize DOM query selectors
8 years ago
Thibaut Courouble
581e656fd2
Optimize search autofocus code
8 years ago
Thibaut Courouble
e2ad2e5117
Minor code cleanup
8 years ago
Thibaut Courouble
e7a0101910
Avoid forced style and layout recalculation when clicking entry in the sidebar
8 years ago
Thibaut Courouble
f891e16f39
Optimize scrolling code during page transitions
8 years ago
Thibaut Courouble
6587b7d878
Show/hide the sidebar on hover
...
Closes #657 .
8 years ago
Thibaut Courouble
01afa80686
Improve doc picker UI
...
Rel: #189
8 years ago
Thibaut Courouble
8d2a2fb298
Improve settings UI
...
Rel: #189
8 years ago
Thibaut Courouble
6de748ebc2
Add 'Customize' link next to 'Disabled' list title
...
Rel: #189
8 years ago
Thibaut Courouble
d852bde5f3
Improve "update ready" notification
8 years ago
Thibaut Courouble
bda3290cc6
Use an SVG icon for "dir" and "path" icons
8 years ago
Thibaut Courouble
9b28702e3a
Simplify code highlighting
8 years ago
Thibaut Courouble
bd7aec1311
Improve jQuery scraper
8 years ago
Thibaut Courouble
bffabec8a6
Simplify rdoc code highlighting
8 years ago
Thibaut Courouble
384ee20b28
Improve Dojo scraper
8 years ago
Thibaut Courouble
150a4b6ab1
Update RequireJS documentation (2.3.4)
8 years ago
Thibaut Courouble
9d53de6a59
Improve Grunt scraper
8 years ago
Thibaut Courouble
05f2a6628c
Update Lua documentation (5.3.4, 5.2.4, 5.1.5)
8 years ago
Thibaut Courouble
85fffdc242
Improve GitHub scraper
8 years ago
Thibaut Courouble
170445c95f
Add setting to force native scrollbars on webkit/blink
...
Closes #601 .
8 years ago
Thibaut Courouble
c06d1c4d2d
Move the app layout class to the <body> element
8 years ago
Thibaut Courouble
69ffa7babe
Improve keyboard navigation on mobile
...
Rel: #638
8 years ago
Thibaut Courouble
9adf4e2d9f
Focus the search field when typing '/' or alphanumeric characters on mobile
...
Rel: #638
8 years ago
Thibaut Courouble
48d85f1124
Improve behavior of search scope when hitting escape
...
Closes #639 .
8 years ago
Thibaut Courouble
7b20d6d02e
Don't open menu on hover
...
Closes #603 .
8 years ago
Thibaut Courouble
61930288b8
Add Electron documentation
8 years ago
Thibaut Courouble
b626a9d574
Improve Erlang documentation
...
Fixes #626 .
8 years ago
Thibaut Courouble
4fabd8bc64
Update Flow documentation (0.46.0)
8 years ago
Thibaut Courouble
7a1ca03397
Add Jasmine documentation
8 years ago
Thibaut Courouble
aa1be2f49d
Add Jest documentation
8 years ago
Thibaut Courouble
7961557468
Show doc version in sidebar when multiple versions of the same doc are enabled
8 years ago
freayd
f606c0abc8
Add OpenJDK documentation
8 years ago
Thibaut Courouble
dcca46cd0f
Fix race-condition when auto-opening first search result
...
Fixes #604 .
8 years ago
Thibaut Courouble
98a6eb58cb
Reset search field when browsing to index page in single doc mode
8 years ago
Thibaut Courouble
82743163c6
Fix searching disabled doc via URL not opening first result correctly
...
Fixes #604 .
8 years ago
Thibaut Courouble
4f62ccbdbf
Fix various issues when switching from single doc to full app
8 years ago
Thibaut Courouble
655beec28c
Don't auto-scroll when clicking checkbox in doc picker
...
Rel #609 .
8 years ago
Thibaut Courouble
a8073b3a12
Fix and improve doc picker tab navigation
...
Rel #609 .
8 years ago
Thibaut Courouble
54c7c0df5c
Don't autofocus search input when another input is focused
8 years ago
Thibaut Courouble
612aeafa22
Fix "Cannot read property load of undefined"
8 years ago
Thibaut Courouble
d59d43e64b
Minor performance optimization to speed up app boot
8 years ago
Thibaut Courouble
188c9d0229
Improve $.scrollTo
...
- Fixes #596 .
- Fixes incorrect sidebar scrolling when sidebar has padding-top.
8 years ago