2004 Commits

Author SHA1 Message Date
Koy Zhuang 49f5c563a3 chore: upgrade marked from 12.0.2 to 13.0.2 (#2467) 2024-07-22 17:25:44 +08:00
Akshay Bhinge 1e9d2f0036 docs: Removal of flags for language choice drop-down (#2468) 2024-07-20 09:28:31 +08:00
John Hildenbiddle 77d93fae78 feat: v5 style overhaul (#2469)
Style updates:

- New "core" theme serves as base for all other themes (official and third-party)
- New CSS custom properties for simplified customization of "core" theme
  **Note:** List of available properties will be made available in documentation by embedding soruce CSS in docs after merge. Merge is required because embedded CSS needs to be in `main` branch. For now, see `_vars.css` and `_vars-advanced.css` for details.
- New theme "add-ons" modify core theme properties and/or add custom declarations as needed.
- New Prism.js theme support
- New configurable sidebar toggle design
- New typography defaults to system sans-serif and monospace fonts instead of relying on external web font.
- New "Core Dark" theme addon provide dark theme styles. Can optionally be applied based on operating system's light/dark setting using `@media` attribute on `<link>` element.
- New "Vue" theme addon. Closely replicated popular v4 theme while allowing for v5 enhancements.
- New CSS class names available for adding loading indicators, adding sidebar expand/collapse icons, adding sidebar group styles, clamping sidebar links to a single line with ellipses, and changing the sidebar toggle icon.
- New auto-generated gradient background for cover page (ensure gradient hue is > 50 degree apart, use OKLCH color if supported, randomize grandient angle, reduce brightness in dark mode)
- New button styles (basic, primary, secondary)
- New form element styles (text input, radio, checkbox, )
- New "callouts" (previously "important" and "tip" helpers)
- New default syntax highlighting theme (from [docsify-themeable](https://jhildenbiddle.github.io/docsify-themeable/))
- New auto-generated theme color shade and tint colors
- New auto-generated monochromatic color palette
- New form element styles (fields, legend, text input, text area, checkbox, radio, toggles, and select)
- New "headerless" tables
- New `kbd` styles
- New task list style
- New merged navbar styles (consistent with sidebar nav styles)
- New search plugin styles and keyboard shortcut indicators
- Add ability restore previously focused content element after hiding sidebar
- Add "focus trap" when sidebar is visible on mobile (accessibility)
- Add ability for sidebar links to wrap by default (previous single-line w/ ellipsis display available as CSS class on `<body>` option)
- Add sidebar `page-link`, `group`, and `group-title` CSS classes to sidebar markup.
- Add reduced motion media query to set all animation/transition timings to zero
- Update Google Font imports (use new variable vs older fixed width fonts)
- Update primary/secondary button order on coverpage (primary should be first)
- Fix missing merged navbar when loading at desktop resolution then resizing to mobile
- Fix inverted open/close sidebar visibility state at desktop/mobile resolutions
- Fix overflow setting to prevent clipping of element focus ring
- Fix safe area inset margins on mobile in landscape orientation
- Fix inverted "tip" and "warn" class names
- Fix scroll padding to prevent headers from touching top edge of viewport when scrolled to
- Remove Stylus dependency (now using only PostCSS)
- Remove legacy themes "Buble", "Dark", "Dolphin", and "Pure".

Documentation updates:

- New "UI Kit" page showcasing all elements styled by Docsify
- Update "Quick Start" page template
- Update "Adding pages" page with information on how to properly create sidebar group titles and navbar drop-down menus
- Update "Themes" page with theme and class toggles
- Update "Configuration" page with deprecation warnings for `themeColor` and `topMargin`
- Move "Edit Page" link to footer
- Remove [docsify-themeable](https://jhildenbiddle.github.io/docsify-themeable/) endorsement (currently not compatible with v5 and future is unknown)

Miscellaneous updates:

- New search plugin options: `insertBefore` and `insertAfter`
- Add PostCSS config file
- Update BrowserSync config (disable "ghost" mode)
- Update tests
- Fix Jest + Prettier 3 conflict
- Fix `getAndRemoveDocisfyIgnoreConfig` name type (now `Docisfy` => `Docsify`)
- Fix execution of sidebar-generating code when `hiddenSidebar` is `true`
- Remove `inBrowser` constant (SSR deprecated, so no longer needed)
2024-07-19 15:34:51 +00:00
dependabot[bot] 90c0b02c63 chore: bump ws, engine.io and socket.io-adapter (#2462) 2024-07-14 17:28:52 +08:00
dependabot[bot] 93b7c2a27b chore: bump @rollup/plugin-commonjs from 25.0.8 to 26.0.1 (#2460)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 25.0.8 to 26.0.1.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v26.0.1/packages/commonjs)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-05 12:05:31 +08:00
Luffy 4ad3e3660b ci: Optimize CI processes (#2451) 2024-06-11 07:34:48 +08:00
dependabot[bot] 5088fcc02a chore: bump crowdin/github-action from 1 to 2 (#2448) 2024-06-03 13:53:03 +08:00
Luffy a539808761 ci: create crowdin action (#2437) 2024-05-30 09:37:22 +08:00
Koy Zhuang 15ed3b76b0 fix(ci): run test action for pull requsts (#2445) 2024-05-29 19:19:32 +08:00
John Hildenbiddle f5412dc7b0 chore: Update lint configuration (ESLint 9, Prettier 3) (#2438)
* Update linting configuration (eslint, prettier)

* Fix lint issues following eslint prettier update

* Change ESLint config to allow boolean coercion

* Switch to default import name per docs

* Fix suppression of error details

* Update JSDoc comments

* Update waiForFunctin to provide error details

---------

Co-authored-by: Koy Zhuang <koy@ko8e24.top>
2024-05-28 15:27:29 -05:00
Koy Zhuang 6552853fef update(ci): add update emoji schedule workflow (#2436)
---------

Co-authored-by: Luffy <52o@qq52o.cn>
2024-05-25 12:45:11 +08:00
John Hildenbiddle 5febdfd7d0 chore: Update marked dependency (4 => 12) (#2439) 2024-05-23 22:15:25 -05:00
John Hildenbiddle 4ae87bb18b build: v5 updates and refactors (#2428)
* Update JS build

- Change rollup build from API to config file
- Change output dir from lib to dist
- Update lib to dist path in related files
- Update dependencies
- Add banner comment to bundles
- Add unminified plugin bundles

* Update docs with v5 version lock and dist path

* Update docs to reference minified themes

* Clean up docs

* Update CSS build

- Change CSS build from API to CLI
- Change output dir from lib to dist
- Update lib to dist path in related files
- Update dependencies
- Add sourcemaps

* Update dependencies

* Clean up package.json and add keywords

* Fix rimraf globs on Windows

* Fix PostCSS CLI glob on Windows

* Update test-related dependencies

* Update emoji

* Add engines prop to package.json
2024-05-21 15:19:21 -05:00
John Hildenbiddle b9f256d848 Build: Add test run to release script (#2433) 2024-05-20 22:34:52 -05:00
John Hildenbiddle 8ef9a3cd03 Fix: Vue text interpolation in code blocks. (#2430)
* Update Vue 3 depenency and docs. Remove Vue 2.

* Fix minor lint issue

* Remove Vue 2 reference

* Swap button positions

* Update Vue2 links

* Send HTML with _blank to avoid quirks mode

* Support Vue text interpolation in code blocks

Fix #1812
2024-05-19 11:49:33 -05:00
timothyjohn2015 0070e26da5 docs: Fix spelling mistake (#2426) 2024-05-13 09:43:33 +08:00
Can Eldem 11015feecc docs: add stormkit as deployment platform (#2413) 2024-05-07 08:11:41 +08:00
Koy Zhuang e15ad0c7d5 feat: support relative path with target config. (#1751)
Co-authored-by: John Hildenbiddle <jhildenbiddle@users.noreply.github.com>
Co-authored-by: Joe Pea <joe@trusktr.io>
2024-04-28 11:08:58 +08:00
John Hildenbiddle bb902f8997 refactor: event modernization and optimization (#2404)
- Refactor methods names and functionality
- Replace scroll listeners with observers
- Replace Tweezer-based scrolling with native scroll methods
- Remove tweezer.js dependency
- Remove redundant method calls
- Rename $resetEvents to onNavigate
- Rename __scrollActiveSidebar to onRender
- Remove __getAndActive
- Remove __sticky
- Add IntersectionObserver mock to Jest environment

Also included:

- Add e2e test “ui” and “chromium” scripts
- Rename "jest" script to "test:jest"
- Remove unused SSR code

---------

Co-authored-by: Koy Zhuang <koy@ko8e24.top>
2024-04-21 07:44:14 -05:00
John Hildenbiddle 2d986feb34 fix: skip-to-content scroll behavior (#2401) 2024-04-17 14:58:00 +08:00
John Hildenbiddle 947d8decb8 fix: dev mode hot reload and add sourcemaps (#2402)
---------

Co-authored-by: Koy Zhuang <koy@ko8e24.top>
Co-authored-by: sy-records <52o@qq52o.cn>
2024-04-17 11:52:48 +08:00
John Hildenbiddle a3ab2be0b0 fix: prevent unnecessary themeColor deprecation notice (#2403) 2024-04-13 12:17:45 +08:00
Luffy 87fd55d712 fix: carbon broken (#2387) 2024-03-26 08:19:31 +08:00
Bingzhi.Li 9e681c6419 chore: fix front matter broken (#2390)
Co-authored-by: Luffy <52o@qq52o.cn>
2024-03-22 09:37:28 +08:00
dependabot[bot] c2cf54bee5 chore: bump husky from 8.0.3 to 9.0.11 (#2382)
Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.0.11.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v8.0.3...v9.0.11)

---
updated-dependencies:
- dependency-name: husky
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 18:41:16 +08:00
Koy Zhuang cec43d7177 fix: husky can not auto install issue after upgrade. (#2325) 2024-01-17 22:49:35 +08:00
dependabot[bot] a416f97237 chore: bump follow-redirects from 1.15.3 to 1.15.4 (#2358) 2024-01-11 13:38:19 +08:00
dependabot[bot] f4ecfd31ff chore: bump actions/upload-artifact from 3 to 4 (#2350)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 16:40:06 +08:00
John Hildenbiddle 167596be51 chore: Update local and Vercel preview. Fix CSS watch functionality. (#2348) 2023-12-22 13:27:13 +08:00
Koy Zhuang 25e715b387 update: render Vue templates by default when import vue resources. (#2327)
* update: render vue by default.

---------

Co-authored-by: John Hildenbiddle <jhildenbiddle@users.noreply.github.com>
2023-12-22 11:23:07 +08:00
Lu Fei 02e525c62e chore: optimize compressed css script (#2338) 2023-12-22 08:09:13 +08:00
Luiz Carlos 806d37bdf0 docs: Update logo doc (#2347)
Co-authored-by: Lu Fei <52o@qq52o.cn>
2023-12-21 10:50:43 +08:00
Lu Fei b08402e39a chore: bump medium-zoom from 1.0.8 to 1.1.0 (#2323) 2023-12-18 08:37:32 +08:00
Lu Fei 3c08e64162 chore: remove useless test case (#2337) 2023-12-16 11:05:54 +08:00
John Hildenbiddle 1c5a7013f1 Chore: Clean up server implementation and update test docs (#2316)
- Replace live-server with existing Browsersync dependency as web server
- Remove duplicate `index.html` file
- Add `build:html` script to generate `/docs/preview.html`
2023-12-11 15:00:33 -06:00
John Hildenbiddle cf61192f9a feat: Keyboard bindings (#2279)
Co-authored-by: Lu Fei <52o@qq52o.cn>
2023-12-05 08:09:52 +08:00
John Hildenbiddle b8a5feaafd Allow scrolling via keyboard in code blocks (#2264) 2023-11-29 23:45:57 -06:00
John Hildenbiddle e7414e0a73 Feat: Add aria attributes to sidebar toggle button and current page link (#2254) 2023-11-29 23:40:14 -06:00
John Hildenbiddle 4d5bf5ac48 feat: Allow top nav to receive keyboard focus (#2269) 2023-11-30 13:23:30 +08:00
John Hildenbiddle 50b84f74b2 feat: Add "Skip to main content" link and update nav behavior (#2253)
Co-authored-by: Joe Pea <trusktr@gmail.com>
Co-authored-by: Koy Zhuang <koy@ko8e24.top>
2023-11-30 13:11:21 +08:00
John Hildenbiddle da43bd7937 Fix: Accessibility roles and aria labels (#2304)
* Fix “main” role

* Fix primary navigation role and aria label

* Fix secondary navigation aria label

* Fix progress bar role and aria labels

* Fix cover page role and aria label

* Fix search role

* Fix search results aria labels

* Add search results status element

* Update snapshots with new roles and aria labels
2023-11-29 12:33:17 -06:00
John Hildenbiddle dac8e59bb7 Feat: Improved error handling and response status availability (#2303)
* Add response data to route object
* Display error status and description on content fetch error
* Fix issue where initial site render was incomplete on content fetch error
* Fix issue where empty markdown pages/routes were handled as 404 errors
* Fix incorrect `notFoundPage` default value
2023-11-17 07:27:09 -06:00
John Hildenbiddle ae71c69e1b Feat: Prevent focus on hidden sidebar (#2265)
Fix #2225
2023-11-16 10:47:44 -06:00
Joe Pea 4e8d6dffce chore: create .gitattributes(#2288)
It is recommended by Prettier to use LF endings for all files including in Windows, and they officially recommend to set this option in .gitattributes file for consistency, and LF is the default in Prettier 2 or higher. The lack of this file bit me in another project whose build failed in Windows in GitHub Actions due to `prettier --check` failing in Windows with default LF mode.

More info: https://github.com/prettier/prettier/issues/7825#issuecomment-602171740
2023-10-23 04:03:53 +08:00
Joe Pea dbe8fc5ec8 action: reduce dependabot frequency from weekly to monthly, get rid of email spam (#2289) 2023-10-22 09:11:12 +08:00
Susheel Thapa 2bbb65fdd1 chore: Fix typo in multiple file of docsify (#2284) 2023-10-20 09:24:35 +08:00
dependabot[bot] 817a764915 chore: bump @rollup/plugin-replace from 5.0.2 to 5.0.3 (#2258)
Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/HEAD/packages/replace) from 5.0.2 to 5.0.3.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/replace/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/babel-v5.0.3/packages/replace)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-replace"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Koy Zhuang <koy@ko8e24.top>
2023-10-15 18:12:54 +08:00
dependabot[bot] 61ae585301 chore: bump @rollup/plugin-commonjs from 25.0.4 to 25.0.5 (#2261)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 25.0.4 to 25.0.5.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v25.0.5/packages/commonjs)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-15 18:07:09 +08:00
dependabot[bot] 3514ebcce2 chore: bump axios from 1.5.0 to 1.5.1 (#2250)
Bumps [axios](https://github.com/axios/axios) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-03 10:20:21 +08:00
dependabot[bot] e6e597a345 chore: bump actions/checkout from 3 to 4 (#2248)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 07:58:32 +08:00