Commit graph

92 commits

Author SHA1 Message Date
Sébastien Lorber
811c7ae4e9
fix(v2): fix recent baseurl issues (#3093)
* try to fix the baseUrl related issues

* fix some newly detected broken links

* fix baseurl and broken link issues

* try to configure netlify to use baseUrl deployment

* add proper netlify settings?

* add proper netlify settings?

* add proper netlify settings?

* test commit

* try to fix the redirects

* cleanup working conf

* minor redirect fix
2020-07-22 19:55:40 +02:00
Sébastien Lorber
27f384a67c
refactor(v2): improve navbar menu + generated config should be normalized (#3088)
* improve navbar menu

* fix errors due to forcePrependBaseUrl being normalized to true

* fix TS errors
2020-07-22 11:56:28 +02:00
Sébastien Lorber
8ff28e3fe4
feat(v2): broken links detection (#3059)
* add broken links checker

* polish

* finalize broken links detection feature

* note broken links is only for prod build

* fix broken link on template

* fix test snapshot

* fix bad merge
2020-07-21 19:13:34 +02:00
Sébastien Lorber
15e73daae7
feat(v2): global data + useGlobalData + docs versions dropdown (#2971)
* doc components initial simplification

* doc components initial simplification

* add docContext test

* Add poc of global data system + use it in the theme

* Revert "doc components initial simplification"

This reverts commit f657b4c4

* revert useless changes

* avoid loosing context on docs switch

* fix docs tests

* fix @generated/globalData ts declaration / es import

* typo

* revert bad commit

* refactor navbar in multiple parts + add navbar item types validation + try to fix remaining merge bugs

* add missing watch mode for plugin debug

* fix docs global data integration, move related hooks to docs plugin + convert to TS

* change versions link label

* fix activeClassName react warning

* improve docs global data system + contextual navbar dropdown

* fix bug preventing the deployment

* refactor the global data system to namespace automatically by plugin name + plugin id

* proper NavbarItem comp

* fix tests

* fix snapshot

* extract theme config schema in separate file + rename navbar links to navbar items

* minor typos

* polish docs components/api

* polish useDocs api surface

* fix the docs version suggestions comp + data

* refactors + add docsClientUtils unit tests

* Add documentation

* typo

* Add check for duplicate plugin ids detection

* multi-instance: createData plugin data should be namespaced by plugin instance id

* remove attempt for multi-instance support
2020-07-21 11:16:08 +02:00
Jeremy Asuncion
9b3da59886
feat(v2): Plugin for Offline/PWA support (#2205)
* implement PWA plugin

* added pwa support for docusaurus website

* moved sw registration to client module

* moved compile function to webpack util

* build sw using webpack and render pwa popup

* implement @theme/PwaReloadPopup

* update website sw to use modules

* updated pwa readme

* fix header lint errors

* apply code formatting

* cache files only for mobile, saveData, or installed pwa

* added comments about clearing registrations

* fixed prettier error

* updated pwa README

* fix README JS

* move /blog => /blog/index.html logic to else branch

* add `alwaysPrecache` option

* updated docusaurus-plugin-pwa version

* added pwa to using-plugins.md

* review fixes

* re-disable restricted-globals to use self in service worker

* useless doc

* Update packages/docusaurus-plugin-pwa/README.md

Co-authored-by: Reece Dunham <me@rdil.rocks>

* Update packages/docusaurus-plugin-pwa/README.md

* update a bit pwa doc + minor refactors

* minor refactors + add workbox debug mode

* env PWA_ prefix

* typo

* minor refactor

* fix file output

* add serve:v2:ssl yarn command

* minor pwa fixes

* typo

* add dynamic import comment in SW

* comment

* let the PWA plugin implement its reload popup on his own

* pwa: add Joi options validation

* pwa plugin should have its own webpack/babel custom setup

* PWA:
- debug logs
- better SW params system
- offline mode activation strategies
- docs

* add pwa install gif

* pwa: popup -> reloadPopup + minor refactors

* fix process.env reading + better debug log

* minor fixes

* minor changes

* minor changes

Co-authored-by: slorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2020-07-08 12:32:41 +02:00
Sébastien Lorber
a5b2b6056b
feat(v2): add disableVersioning config to docs plugin (#2989)
* add disableVersioning config to docs plugin

* fix test

* fix test
2020-07-01 19:03:59 +02:00
Sébastien Lorber
c2bb03ab00
fix(v2): refactor color mode system (#3012)
* refactor color mode system to enable all possibilities

* fix destructuring bug

* colorMode validation + deprecation + minor name changes + doc

* rename method noFlashColorMode

* fix doc wording

* docs wording

* docs wording

* re-enable theme config merging/normalization + colorMode fixes

* document theme normalization

* code review changes
2020-06-30 12:21:20 +02:00
Teik Jun
2e055f4ae2
fix(v2): make client-redirect-plugin not baseUrl sensitive (#3010)
* feat(v2): use relative routes path in postBuild hook

* feat(v2): use relativeRoutesPath in other methods and modify tests

* fix(v2): fix D2 client redirects and tests

* feat(v2): add tests for relativeRoutesPaths

* fix(v2): fix some typos in configValidation

* fix(v2): fix an eslint warning and restart github action

* refactor(v2): create a removePrefix method

* refactor(v2): inline unnecessary method
2020-06-29 18:38:28 +02:00
slorber
c964a1e3b6 add introduction redirect 2020-06-10 17:22:08 +02:00
slorber
a02f90c064 Merge branch 'master' into feature/client-side-redirects 2020-06-04 11:42:00 +02:00
Alexey Pyltsyn
5c6670b94e fix(v2): fix broken URL to introduction 2020-06-04 03:38:01 +03:00
slorber
00a79f69c7 Add chalk non-blocking errors + fix config bug 2020-06-03 19:28:57 +02:00
slorber
77c7ac0ddb add more redirect tests to d2 site config 2020-06-03 18:15:12 +02:00
slorber
e057bbd662 add proper redirect config for tests 2020-06-03 17:55:46 +02:00
slorber
c224efb8a1 Add better options validation error 2020-06-03 17:53:54 +02:00
slorber
362573a391 Merge branch 'master' into feature/client-side-redirects 2020-05-27 16:51:04 +02:00
Alexey Pyltsyn
2105700fb7
refactor(v2): various tweaks to website (#2816) 2020-05-27 20:56:59 +08:00
slorber
0c330df5cc fix template import issue 2020-05-25 20:06:52 +02:00
slorber
fd47ca1925 feat(v2): docusaurus-plugin-client-redirects 2020-05-22 20:15:16 +02:00
Alexey Pyltsyn
05c3aa31f4
fix(v2): do not highlight root docs path in navbar (#2778) 2020-05-20 16:49:11 +08:00
Alexey Pyltsyn
c7baa125e6
chore(v2): mention about docs home page in init templates (#2763)
* chore(v2): mention about docs home page in init templates

* use home page id for docs

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-18 13:14:06 +08:00
Alexey Pyltsyn
00a8e9e365
feat(v2): allow home page for docs (#2652)
* feat(v2): allow home page for docs

* Refactor

* Remove debugging info 🤦‍♂️

* Add sort routes for first test case

* Sort child routes for consistency
2020-05-17 17:48:02 +08:00
Alexey Pyltsyn
7389a60514
fix(v2): add a11y support for dropdown (#2672)
* fix(v2): add a11y support for dropdown

* fix(v2): add aria-label for navbar GH link
2020-04-27 14:17:55 +03:00
Alexey Pyltsyn
c0e531e5d9
feat(v2): add ability to specify CSS class for navbar item (#2660)
* feat(v2): add ability to specify CSS class for navbar item

* Fix linting issues
2020-04-27 02:21:36 +08:00
Sam Zhou
41b3c66f5e
fix(v2): fix copyright footer (#2640)
* fix(v2): Fix copyright footer

* Run prettier
2020-04-22 08:52:59 +03:00
Yangshun Tay
e1258baa77
chore(v2): add Privacy Policy and Terms of Use links to footer (#2638)
* chore(v2): add Privacy Policy and Terms of Services links to footer

* rename

* Shift to links
2020-04-22 12:30:03 +08:00
Alexey Pyltsyn
f4c2ae7cee
fix(v2): fix path for footer menu item Help 2020-04-07 14:24:55 +03:00
Yangshun Tay
c1ef488115
docs(v2): add community pages (#2545)
* docs(v2): add community pages

* misc fixes
2020-04-06 01:10:22 +08:00
Alexey Pyltsyn
1f00d15c74 chore(v2): fix code style (revert previous changes) 2020-04-05 17:38:12 +03:00
Alexey Pyltsyn
6965a668cd chore(v2): fix code style 2020-04-05 17:30:59 +03:00
Yangshun Tay
b07507c9cc
chore(v2): upgrade devDependencies (#2538)
* chore(v2): upgrade devDependencies

* chore(v2): upgrade devDependencies

* chore: prettier
2020-04-05 19:07:44 +08:00
Fanny
5e664a1f26
feat(v2): add edit url in post page (#2524)
* Add edit page url in docs

* feat(v2): Create EditPage component

* feat(v2): Improve component

* Add test

* çhore(v2): update description

* çhore(v2): update url

* fix(v2): test

* fix(v2): test

* feat(v2): change the prop of EditPage component

* chore(v2): Remove packages

* feat(v2): Update old tests

* chore(v2): fix package

* fix(v2): fix editUrl

* docs(v2): document editUrl

* --

* --

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 17:34:48 +08:00
Yangshun Tay
2a2824e976
docs(v2): add link to master docs (#2506) 2020-04-02 14:45:10 +08:00
Yangshun Tay
f51b56460e
fix(v2): tweak colors for announcement bar (#2505)
* fix(v2): tweak colors for announcement bar

* black
2020-04-02 14:41:49 +08:00
Alexey Pyltsyn
0c1d593e00
refactor(v2): improve announcement bar (#2504) 2020-04-02 14:31:53 +08:00
Alexey Pyltsyn
1577ab98e9
fix(v2): fix HTML issues nav dropdown and highlight docs item (#2489) 2020-04-02 01:07:51 +08:00
Yangshun Tay
f96c2b61d7
feat(v2): nav dropdown (#2487)
* feat(v2): allow nav dropdown

* docs(v2): document navbar links

* fix bug
2020-04-01 03:10:04 +08:00
Alexey Pyltsyn
0f73a1fad8
feat(v2): add announcement bar (#2330)
* feat(v2): add announcement bar

* Refactor: move to Layout

* Fixes

* Refactor to simplify

* Changes: id, styles, docs
2020-04-01 00:08:55 +08:00
Alexey Pyltsyn
5b08ba7f48
polish(v2): add logo for dark mode (#2439) 2020-03-22 21:33:19 +08:00
Alexey Pyltsyn
18169814c8
fix(v2): fix aspect ratio for Open Graph image (#2435) 2020-03-22 10:05:23 +08:00
Yangshun Tay
32c1a92b17
chore: yearless copyright headers for source code (#2320)
* chore: yearless copyright headers for source code

* update snapshots
2020-02-25 23:12:28 +08:00
Yangshun Tay
787b073bb7
docs(v2): nav links activeBasePath (#2303)
* docs(v2): Nav links activeBasePath

* rename activeBaseRoute to activeBasePath

* fixes
2020-02-21 09:44:14 +08:00
Yangshun Tay
c46bf90f60
feat(v2): allow navbar links to show active style by specifiying a base path (#2299) 2020-02-20 10:10:22 +08:00
Yangshun Tay
a2642e8acf fix(v2): don't even print anonymizeIP if false in Google Analytics plugin 2020-01-12 22:19:22 +08:00
Alexey Pyltsyn
1c032a0bd9 refactor(v2): change title of last footer column (#2170) 2020-01-02 00:43:08 +08:00
Alexey Pyltsyn
5c06f5884e fix(v2): improve accessibility for Netlify badge (#2168) 2020-01-01 23:23:57 +08:00
Alexey Pyltsyn
92c68ed742 feat(v2): add support another Prism theme for dark mode (#1984)
* feat(v2): add support another Prism theme for dark mode

* add dynamically change Prism theme

* Prepare for review

* PR review changes

* feat(v2): useThemeContext

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2019-12-25 22:52:34 +08:00
Endi
850c3a1deb
chore(v2): add netlify logo for open source plan (#2147)
* chore(v2): add netlify logo for open source plan

* change logo

* Update website/docusaurus.config.js

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2019-12-25 16:36:42 +07:00
Endi
578815c620
chore(v2): prepare alpha.40 release (#2146) 2019-12-25 16:30:29 +07:00
Alexey Pyltsyn
5bfa5d6579 feat(v2): hide navbar on scroll (#2055)
* feat(v2): hide navbar on scroll

* Turn on hide option

* Refactor after review
2019-12-12 04:19:37 -08:00