Commit Graph

550 Commits

Author SHA1 Message Date
Koy
4c2e6304cb
update(doc): fix themeColor in configuration. (#2160) 2023-08-03 20:39:49 +08:00
Joe Pea
b18865d53b
Merge branch 'develop' into modernize-source-code 2023-07-16 10:30:01 -07:00
Joe Pea
dab6e1c1be
Merge branch 'develop' into update-routerMode-docs 2023-07-16 10:18:21 -07:00
Joe Pea
b621e0e4e7 chore: update miscellaneous parts of the source to reasonably modern language alternatives, remove polyfills, improve some JSDoc comments, remove traces of IE
BREAKING: In a minority of cases syntax updates may break apps running in very old browsers (such as Internet Explorer), or apps that build Docsify in a custom way with old build tools. To upgrade, build Docsify for older browsers in a custom way, or update existing build tools to handle newer syntax.

DEPRECATED: `$docsify.themeColor` is deprecated and will be eventually removed, use a `--theme-color` CSS variable in your style sheet.
2023-07-03 01:50:00 -07:00
Joe Pea
103dde845f Merge branch 'develop' into delete-ssr
* develop:
  feat: add google analytics gtag.js plugin (#1702)
  chore: bump conventional-changelog-cli from 2.2.2 to 3.0.0 (#2085)
2023-06-29 19:55:12 -07:00
Eko Zhan
29f3c82faa
feat: add google analytics gtag.js plugin (#1702)
Co-authored-by: Joe Pea <joe@trusktr.io>
Co-authored-by: 沈唁 <52o@qq52o.cn>
Co-authored-by: John Hildenbiddle <jhildenbiddle@users.noreply.github.com>
Co-authored-by: zhanzhao <zhanzhao@megvii.com>
2023-06-27 10:54:16 +08:00
Joe Pea
8d5d20480a refactor: delete the experimental and incomplete SSR feature
BREAKING: SSR removed

Anyone depending on SSR will need to stay on an old Docsify version for
now, move forward without SSR, or maintain SSR against a fork of updated
Docsify. We have ideas on a better way to implement SSR, but these ideas
have not been implemented yet.
2023-06-25 12:03:44 -07:00
James Henry
4b9b464cbf
chore: migrate from lerna bootstrap to npm workspaces (#2094)
* chore: migrate from lerna bootstrap to npm workspaces

---------

Co-authored-by: 沈唁 <52o@qq52o.cn>
Co-authored-by: Joe Pea <joe@trusktr.io>
2023-06-24 14:35:13 -07:00
Koy ['kɔɪ]
61c9e4baec
Merge branch 'develop' into update-routerMode-docs 2023-04-08 17:55:43 +08:00
Koy Zhuang
898e6eea7a
chore(docs): docsify-ignore config polish. (#1994) 2023-02-23 16:01:11 +08:00
Joe Pea
e07060ad14 add a note about making an alias for _sidebar.md when using routerMode: 'history' 2023-01-22 19:51:33 -08:00
Joe Pea
3feebc0be6 add notes on "hash" vs "history" routing in the config docs 2023-01-22 19:32:44 -08:00
Joe Pea
ef6905b53a
fix: fix cross-origin links in history router mode (#1967) 2023-01-23 01:54:30 +08:00
沈唁
509781036d
docs: Fix missing dolphin theme (#1960) 2023-01-10 16:02:02 +08:00
Andrew Blakey
f4cae7ff82
Describe ordering requirement for prism script tag (#1935)
I couldn't get a prism typescript language grammar to work until I realised that script order mattered.   

This might not be the best language or format for this, but I think it probably belongs in the documentation in some manner.

Thank you!
2022-12-12 15:07:41 +08:00
i544693
a6701d6d23 [build] 4.13.0 2022-10-26 21:45:48 +08:00
i544693
8fcd92baa3 [build] 4.12.4 2022-10-26 17:53:55 +08:00
i544693
7db2434a1a [build]: 4.12.3 2022-10-26 17:21:50 +08:00
Mike Mwanje
c98fda7ad6
docs: Update GitHub default branch from to 'main' (#1883) 2022-09-17 22:50:31 +08:00
John Hildenbiddle
19e40c2075
Docs: Fix plugin insertion order in docs (#1850) 2022-08-02 12:27:23 -05:00
Xavi Lee
fa14210e8e
docs: update the name for "Simplified Chinese" (#1811)
* update the name for "Simplified Chinese"

* update the name for "Simplified Chinese"

* update the name for "Simplified Chinese"
2022-06-03 13:29:52 +08:00
Roy Sommer
8cbc7c8073
Virtual Routes Support (#1799)
* add first test

* new VirtualRoutes mixin that handles routes. fetch tries to use VirtualRoutes. default config updated

* cover all basic use cases

* regex matching in routes

* covered all virtual routes tests

* added hack to fix config test on firefox

* removed formatting regex matches into string routes

* added support for "next" function

* added docs

* navigate now supports both hash and history routerModes

* waiting for networkidle in navigateToRoute helper

* promiseless implementation

* remove firefox workaround from catchPluginErrors test, since we no longer use promises

* updated docs

* updated docs for "alias" as well

* minor rephrasing

* removed non-legacy code from exact-match; updated navigateToRoute helper to infer router mode from page

* moved endsWith from router utils to general utils; added startsWith util; refactored makeExactMatcher to use both

* updated docs per feedback

* moved navigateToRoute helper into the virtual-routes test file

* moved navigateToRoute to top of file

* updated docs per pr comments
2022-05-23 14:03:33 -07:00
沈唁
2d13255acb
chore: update vercel logo (#1776)
* chore: update vercel logo

* chore: update vercel logo

* chore: remove vercel link form github pages

* chore: update style

* chore: update readme

* chore: update readme

* chore: update readme
2022-03-24 00:46:36 +08:00
沈唁
093d4a0081
chore: update vercel link (#1775)
* chore: update vercel link
2022-03-19 23:58:07 +08:00
John Hildenbiddle
9e6a3e677a
docs: Minor fixes to plugin docs (#1774) 2022-03-19 11:36:25 +08:00
John Hildenbiddle
6f4f09bd7e
docs: Update configuration options (#1773) 2022-03-18 10:52:29 -05:00
John Hildenbiddle
63b2535a45
feat: Plugin error handling (#1742) 2022-03-15 00:18:50 -05:00
John Hildenbiddle
ba5ee26f00
feat: Emoji build (#1766)
* Fix incorrect file name

* Improve build

- Display emoji API URL
- Display number of emoji entries retrieved from API
- Distinguish between creating and updating files
- Catch and display errors (gracefully fail for offline work)
- Add “DO NOT EDIT” comment to generated output

* Add emoji to automated build

* Remove emoji plugin from dev index.html
2022-03-08 16:22:10 +08:00
John Hildenbiddle
35002c92b7
feat: Native emoji w/ image-based fallbacks and improved parsing (#1746)
* Render native emoji with image fallback

Fix #779

* Deprecate emoji plugin

* Add emoji tests

* Remove console.log statement

* Fix emoji image alt attribute

* Set nativeEmoji to false by default (non-breaking)

* Fix parsing emoji in HTML comments and script tags

* Add nativeEmoji and update noEmoji details

* Add Emoji plugin deprecation notice

* Fix ESLint issues

* Create build:emoji task

- Auto-generate emoji data from GitHub API
- Auto-generate emoji markdown for website
- Add emoji page to navigation

* Fix rendering of GitHub emoji without unicode

* Adjust and match size of native and image emoji

* Update emoji test snapshot

* Update docs test snapshot

* Fix ci/codesandbox error

* Update native emoji font-stack

* Fix rendering of native multi-character emoji

* Kick GitHub Workflow

* Replace rollup’s uglify plugin with terser

* Switch “npm ci” instead of “npm i” for stability

* Change emoji data from default to named export

* Revert "Replace rollup’s uglify plugin with terser"

This reverts commit 7ba85136361c72839516900d91cca806fac94fee.

* Revert "Switch “npm ci” instead of “npm i” for stability"

This reverts commit d52b476a387250740d934e8fd7df7ba274dd17a0.

* Revert "Change emoji data from default to named export"

This reverts commit 3f2dd467cf9c7a74d8c53c2ee52cc63837b00a3c.

* Specify codesandbox template and node version

* Update codesandbox config

* Revert "Revert "Replace rollup’s uglify plugin with terser""

This reverts commit e06fed49f0383c485e01f1758228849ad0085bc8.

* Revert "Revert "Revert "Replace rollup’s uglify plugin with terser"""

This reverts commit 27d49521f61976dedcbbf210e1811839853e0e47.

* Update codesandbox config

* Revert "Update codesandbox config"

This reverts commit 5120dd23d45fbd4b2c893db33acbf7014e57c023.

* Fix codesandbox uglify error

* Emoji docs tweaks

* Restore and update emoji plugin code

* Restore and update emoji plugin docs

* Prettier updates

* Match lowercase shortcodes only

Co-authored-by: Koy Zhuang <369491420@qq.com>
2022-03-05 22:25:09 -06:00
John Hildenbiddle
fa6df6d584
fix: Legacy bugs (styles, site plugin error, and dev server error) (#1743)
* Add try/catch w/ error message to plugin calls

* Update lifecycle.js

* Update lifecycle.js

* Fix docsify-plugin-carbon error

* Fix ESLint errors

* Simplify conditional JS loading

* Fix styles in legacy browser w/o CSS var support

* Fix gitignore paths

* Fix BrowserSync IE error

* Fix search field presentation in IE11

- Removed fixed height and allow element to size naturally via font-size and padding
- Remove default "x" rendered on IE input fields

* Revert "Update lifecycle.js"

This reverts commit 2a58be69eb75a87b74d0408765e1d222282ac95b.

* Revert "Update lifecycle.js"

This reverts commit 67c5410b049237887811350f38e3f9bc8a2c78dc.

* Revert "Add try/catch w/ error message to plugin calls"

This reverts commit 631e9248786f87a5b2f7892fc73a53543744d288.

* Fix docsify-plugin-carbon error & ESLint errors

Co-authored-by: 沈唁 <52o@qq52o.cn>
2022-02-05 03:21:50 -06:00
沈唁
18cd18ce04
docs: update readme (#1740) 2022-02-02 17:50:20 +08:00
Joe Pea
47cb36e74d mention that SSR is experimental and incomplete, prevent people from using it thinking it is ready for prime time 2022-01-23 19:43:46 -08:00
i544693
e405120e08 [build] 4.12.2 2022-01-06 16:55:22 +08:00
Joe Pea
760e0c7983
docs: update noCompileLinks documentation (#1666)
Co-authored-by: 沈唁 <52o@qq52o.cn>
2021-11-19 17:19:45 +08:00
2jun0
57dc8a9238
docs: Update nameLink in configuration.md (#1653)
Like [this commit](https://github.com/docsifyjs/docsify/pull/1651), thie configuration.md page needs to be updated.

Co-authored-by: 沈唁 <52o@qq52o.cn>
2021-10-22 09:50:34 +08:00
2jun0
a5cf85b61d
docs: add nameLink for change logo redirect. (#1651)
add nameLink to change logo redirect path for different lang docs.
Co-authored-by: 沈唁 <52o@qq52o.cn>
2021-10-15 14:11:56 +08:00
Koy
f23f56a945
docs: update formatUpdated (#1645)
* update: docs formatUpdated.
2021-10-06 13:49:56 +08:00
Aarav Borthakur
72485a38c1
docs: Add dynamic code block highlighting documentation (#1626) 2021-08-27 18:34:34 +08:00
John Jago
c0bf897ea4 docs: improve English wording (Guide)
This change improves a few of the phrases so that they sound more natural.
Small stylistic changes are also included, such as consistent use of "GitHub"
instead of "Github".
2021-07-30 11:51:24 -05:00
John Jago
97806cb757
docs: improve English wording (Getting Started/Customization) (#1617)
While referencing the documentation, I noticed a few phrases that could
be changed to sound more natural. I tried to keep the original meanings.
2021-07-30 10:18:00 +08:00
沈唁
2840ac5d11
docs: Update docsify-updated to prevent replacement (#1574)
Co-authored-by: Koy <koy@ko8e24.top>
2021-06-26 07:39:56 +08:00
luwol03
ec16e4a9d5
fix: allow also " inside of an embed 2021-06-22 14:31:45 +02:00
wxq
f80846bd4a
docs: src of docsify-copy-code (#1585)
Co-authored-by: 沈唁 <52o@qq52o.cn>
2021-06-04 12:19:03 +08:00
Koy
043c9c9f33
docs: add note on video/media attrs. (#1559)
* docs: add note on video/media attrs.

* update: refine decription.

Co-authored-by: 沈唁 <52o@qq52o.cn>
2021-05-09 09:14:32 +08:00
沈唁
a6fbe079d3
chore: Update Edit Document using develop branch (#1541) 2021-04-18 16:14:33 +08:00
wxq
32203b77bf
docs: link with plugin Pagination (#1554)
Co-authored-by: Koy <koy@ko8e24.top>
2021-04-11 21:02:11 +08:00
沈唁
c2cf163fc0
chore: Fix search for missing pathNamespaces (#1547) 2021-03-28 18:46:09 +08:00
Mitchell Wright
f19dc69aaf
docs:Update deploy, change Zeit to Vercel (#1540) 2021-03-18 00:21:33 +08:00
sy-records
d1b77c7134 [build] 4.12.1 2021-03-07 11:00:41 +08:00
沈唁
a8016c8d74
docs: Update Vercel logo link (#1520) 2021-02-20 15:54:30 +08:00