GithubHelp home page GithubHelp logo

ulivz / vt Goto Github PK

View Code? Open in Web Editor NEW
137.0 3.0 11.0 4.38 MB

๐Ÿ–ผ๏ธ A "Post-VuePress Era" Documentation Theme (Deprecation Warning: For a next-gen SSG, please check out Rspress.)

Home Page: https://vt.insx.dev

License: MIT License

Vue 59.92% JavaScript 11.65% CSS 0.25% TypeScript 11.83% Stylus 16.34%
vuepress vuepress-theme vitepress vue vuejs vt vuepress-theme-vt

vt's Introduction




VT

A "Post-VuePress Era" Documentation Theme

NPM version

๐Ÿ“– Live Documentation
๐Ÿ“š VuePress Docs With This Theme



Status

VT is now in maintenance mode and will be deprecated in the future. For a next-gen SSG, please check out Rspress.

Features

Motivation

I made this theme to combine better eXperience and current huge VuePress ecosystem, and introducing some built-in features like Full-text search, i18n etc.

Install

npm i vuepress-theme-vt -D

Usage

// .vuepress/config.js
module.exports = {
  theme: "vt",
};

Prior Art

vuepress-theme-vt won't exist without @vue/theme and VuePress ecosystem:

Sponsors

If my code has helped you, please consider sponsoring me. I'd like to thank these awesome companies for sponsoring me:

You can donate through the following channels:

LICENSE

MIT License ยฉ ULIVZ

vt's People

Contributors

fireairforce avatar sanyuan0704 avatar simplyme0823 avatar skychx avatar spencerht avatar ulivz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vt's Issues

hightligh problem when use diff

```diff
<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <div id="root"></div>
- <script src="/index-CH27MJVK.js" type="module"></script>
+ <script src="http://www.speedy.dev/index-CH27MJVK.js" type="module"></script>
</body>
</html>
```

when i use diff it generate the following result
image

but it renders nicely in github | vscode

<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <div id="root"></div>
- <script src="/index-CH27MJVK.js" type="module"></script>
+ <script src="http://www.speedy.dev/index-CH27MJVK.js" type="module"></script>
</body>
</html>

Typographic replacements and enabling markdown-it plugins.

Question. I'm attempting to follow the docs and I'm a bit lost on typographic replacements. Can you give a little more detail on how to enable typographer? Would enabling this fix the numbered lists so that they are actually numbered. See example here of them not actually being numbered.

Last question, where do I enable the markdown-it plugins? I thought it would be in the .vuepress/config.ts file, like this:

import { ThemeConfig } from "vuepress-theme-vt";
import { defineConfig4CustomTheme } from "vuepress/config";

export = defineConfig4CustomTheme<ThemeConfig>((ctx) => ({
  theme: "vt",
  title: "Title",
  plugins: [
    [
      'HERE?'
    ]
  themeConfig: {
    enableDarkMode: true,

Thanks in advance!

[bug] TypeError: Cannot read properties of undefined (reading 'map')

Summary

Once you config a path without children at API page:

{
  title: "API Reference",
  path: "/api/",
},

You'll get following error:

vue.runtime.esm.js?84a7:1897 TypeError: Cannot read properties of undefined (reading 'map')
    at eval (API.vue?a295:25:1)
    at Array.map (<anonymous>)
    at VueComponent.apiGroups (API.vue?a295:21:1)
    at Watcher.get (vue.runtime.esm.js?84a7:4495:1)
    at Watcher.evaluate (vue.runtime.esm.js?84a7:4597:1)
    at VueComponent.computedGetter [as apiGroups] (vue.runtime.esm.js?84a7:4851:1)
    at VueComponent.filtered (API.vue?a295:44:1)
    at Watcher.get (vue.runtime.esm.js?84a7:4495:1)
    at Watcher.evaluate (vue.runtime.esm.js?84a7:4597:1)
    at VueComponent.computedGetter [as filtered] (vue.runtime.esm.js?84a7:4851:1)

[feature request] support page layout

Motivation

Currently if we want to custom the page's layout (e.g. hidden sidebar, toc and pageEdit), we need hidden it via frontmatter one by one:

---
toc: false
pageEdit: false
sidebar: false
---

And after #42 is merged, the page' container style is not aligned and is hard to control, it's not friendly for users who only wants to use a fully different page layout and only remain Header.

API Design

Introduce a new frontmatter option BlogPage:

---
pageLayout: BlogPage
---

The the page will be rendered with the component, and we don't need to hack any internal styles.

Better style for diff code

 โ”œโ”€โ”€ docs
 โ”‚ย ย  โ”œโ”€โ”€ api
+โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config-foo.md
+โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config-bar.md
+โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config-baz.md
+โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ index.md
-โ”‚ย ย  โ”œโ”€โ”€ guide
 โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ getting-started.md
 โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ index.md
 โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ ...
 โ”‚ย ย  โ””โ”€โ”€ index.md
 โ””โ”€โ”€ package.json

[Bug]: code highlighting is hard to read

```sh{4}
  asset-demo
  |- package.json
  |- package-lock.json
  |- speedy.config.ts
  |- /dist
    |- bundle.js
    |- index.html
  |- /src
+   |- style.css
    |- index.js
  |- /node_modules
```

generates

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.