Giter Site home page Giter Site logo

nuxt-themes / docus Goto Github PK

View Code? Open in Web Editor NEW
1.4K 8.0 150.0 11.82 MB

Write beautiful documentations with Nuxt and Markdown.

Home Page: https://docus.dev

License: MIT License

CSS 2.15% Vue 65.82% TypeScript 31.44% JavaScript 0.60%
nuxt documentation-generator nuxt-theme

docus's Introduction

Docus

Docus

npm version npm downloads License Nuxt Nuxt Studio Volta

Docus is the fastest way to create document-driven websites with Vue & Markdown.

Start a project with Docus

You can use this template to create a new project.

If you want to add Docus to an existing codebase, you can do so with:

  • Install the dependency:
npm install @nuxt-themes/docus
  • Add it to your extends key in nuxt.config:
defineNuxtConfig({
  extends: '@nuxt-themes/docus'
})

Features โœจ

  • +50 Components ready to build rich pages
  • Article, Docs and Blog layouts
  • Start from a README, scale to a framework documentation
  • Table of contents support
  • Configurable design system integration
  • Replace, extend, customize any component in a breeze
  • Leverages @nuxt-themes/typography
  • Used on Content Documentation

They are using it ๐ŸŽจ

Contributing ๐Ÿ™

  1. Clone this repository
  2. Install dependencies using pnpm install --frozen-lockfile
  3. Run pnpm run prepare to generate type stubs.
  4. Use pnpm run dev to start default starter. You can edit the module because pnpm workspace links it with the default starter.
  5. Do not commit any change in .starters/default since its your playground.

License ๐Ÿ“Ž

MIT License

docus's People

Contributors

atinux avatar barbapapazes avatar bdrtsky avatar benjamincanac avatar clemcode avatar danielroe avatar electrolinux avatar fago avatar farnabaz avatar flosciante avatar itsmnthn avatar jsonleex avatar kitiho avatar mannil avatar mathieunicolas avatar owlnai avatar pi0 avatar ppodds avatar pyncz avatar qwerzl avatar rchl avatar renovate[bot] avatar sandros94 avatar sent avatar shingangan avatar smarroufin avatar tahul avatar tragio avatar victorgarciaesgi avatar willzittlau 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  avatar  avatar  avatar  avatar  avatar

docus's Issues

Add Analytics section

Link to Nuxt modules to add Analytics, example with plausible module and another one with using Head

Make `en` directory optional

I think it would be great to support having to locale dir by default to avoid too many levels.

content/
  index.md

Fix remark prose plugin to detect vue components

The plugin detects components based node type in their AST representation. But AST node may differ for a single component.

{  
  type: 'paragraph',
  children: [
    {
      type: 'html',
      value: '<external-link href="https://github.com/nuxtlabs/docus-starter/generate">',
      position: [Object]
    },
    {
      type: 'text',
      value: 'Create a repo with the Docus starter',
      position: [Object]
    },
    {
      type: 'html',
      value: '</external-link>',
      position: [Object]
    }
  ]
}

Paragraph nodes with html child should unwrap. https://github.com/nuxt/content/blob/dev/packages/content/parsers/markdown/handlers/paragraph.js

Menu Ordering

Is your feature request related to a problem? Please describe.

Currently it is so hard to maintain order menu items since we need position for each content which makes refactoring hard without using

Describe the solution you'd like

Idea 1:

  • Support categoryPosition
  • Set relative position per category

Idea 2:

  • Define outline (categories with order) inside docus settings

Idea 3: (preferred)

Similar to (1) but use file directory prefix (content/en/1.deploy/2.vercel.md)

Side note: Also would be nice if by default using alphabetical sorting currently seems not happening

Better support plugins

Related also to nuxt/content#746

It would be nice to directly support using ~/@ in plugins, css, components options.

Since ~ is an alias of srcDir but docus overwrites it to its own dir, we shall go throught the user defined keys to replace ~ with ~~ and @ to @@ (or directly replace using rootDir).

cc @pi0, what do you think?

Colorizing diff syntax

Is your feature request related to a problem? Please describe.

Sometimes in docs, it is useful to use diff as language to specify required changes.

Github and editors render like this:

image

Generate social previews

It would be great to generate a social preview card for each page, based on the title / description from the page.

I believe this could be done during nuxt generate.

Move releases to a serverMiddleware

Removing the marked dependency and avoiding using the GH Token on the front-end part (SPA fallback).

I think it would be nice also to show a page more a la Maintainers Changelog.

Issues with blurry navbar

I don't know if it is intended by design or not but currently when jumping to a page using # anchors, the title goes behind blurry nav which is bad UX imo:

image

Some suggestions:

  • Using different position for nav compoonent (still we will have issue for mobile/responsive design)
  • Customize scroll behavior to jump with margin considering nav height

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Support a way to unprose

The initial idea I explored was be to add a .unprose class to the custom element.

After some research, it seems that it is not possible easily:

We need another way to achieve this, I have been looking at how TailwindCSS website approach this issue, they use a Remark plugin to add the prose class to Markdown elements:

This will avoid having having to overwrites all style to unprose manually, example of what I want to achieve:
Screenshot 2021-02-05 at 11.31.40.png

Only need one icon

The idea is to be a light as possible, a simple icon.svg (fallback to icon.png) should be required.

Error page

Work on a nicer error layout for error page.

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.