Skip to content

Commit

Permalink
Apply styling to <kbd> elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed May 25, 2024
1 parent 14c7682 commit 7ad8701
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builddefs/docsgen/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Override <kbd> as vitepress doesn't put them with borders */
kbd {
border: 1px solid var(--vp-c-text-1);
border-radius: 0.6em;
margin: 0.2em;
padding: 0.2em;
}
1 change: 1 addition & 0 deletions builddefs/docsgen/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'
import './custom.css'

export default {
extends: DefaultTheme,
Expand Down
2 changes: 2 additions & 0 deletions lib/python/qmk/cli/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ def docs(cli):
if not prepare_docs_build_area(is_production=False):
return False

if not cli.config.general.verbose:
cli.log.info('Serving docs at http:https://localhost:5173/ (Ctrl+C to stop)')
run_docs_command('run', 'docs:dev')
2 changes: 2 additions & 0 deletions lib/python/qmk/cli/generate/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ def generate_docs(cli):
cli.log.info('Successfully generated docs to %s.', BUILD_DOCS_PATH)

if cli.args.serve:
if not cli.config.general.verbose:
cli.log.info('Serving docs at http:https://localhost:4173/ (Ctrl+C to stop)')
run_docs_command('run', 'docs:preview')

0 comments on commit 7ad8701

Please sign in to comment.