Coder Social home page Coder Social logo

0xflotus / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexpate/docs

0.0 2.0 0.0 20.33 MB

Documentation of ZEIT Now and other services

Home Page: https://zeit.co/docs

License: MIT License

HCL 0.11% JavaScript 99.84% Shell 0.05%

docs's Introduction

ZEIT Documentation

This is the public documentation for ZEIT Now all other related services.
You can access this documentation online at https://zeit.co/docs .

Running Locally

To get started developing locally, clone this repository, cd into the directory, and then install the dependencies:

yarn

Next, you can run the app with: (The app is written in Next.js)

yarn dev

Now the documentation app will be running at http://localhost:3000/.

Editing Docs Content

You can find the source of the documentation inside the pages/docs directory and the guides source in the pages/guides directory. Documentation is written in markdown with the help of some React components via MDX.

Those components give us additional features which are not available in markdown.

Adding New Docs

Any document can be modified with markdown or any imported React component with the power of MDX.

The following is the format of a docs page, which is used when creating any new document when placing that document within the pages/docs directory. The page extension must be .mdx.

import Doc from '~/components/layout/docs'

import { TerminalInput } from '~/components/text/terminal'

export const meta = {
  title: 'The Title for the New Doc',
  description: 'The description for the new documentation page.'
  date: '1 January 2019'
}

This is the content written in Markdown with MDX!.

<TerminalInput># this is how we show the terminal input</TerminalInput>

The following is to allow the content to be exported as a page with our layout.

export default ({ children }) => <Doc meta={meta}>{children}</Doc>

Then you can add it to the sidebar by editing the file located at: lib/data/[version]/docs.js but please note that we are focused on content relating to the latest Now platform version, 2.0.

Adding a New Guide

A guide uses the same underlying technology as documentation pages, however exists in the pages/guides directory.

A file must be added using the .mdx extension and uses the following format:

import Guide from '~/components/layout/guide'

import { TerminalInput } from '~/components/text/terminal'

export const meta = {
  title: 'The Title for the New Guide',
  description: 'The description for the new guide page.'
  published: '1 January 2019',
  authors: ['your-zeit-username'],
  url: '/guides/guide-url'
}

This is the content written in Markdown with MDX!.

<TerminalInput># this is how we show the terminal input</TerminalInput>

The following is to allow the content to be exported as a page with our layout.

export default ({ children }) => <Guide meta={meta}>{children}</Guide>

Adding Images and Assets

You can add images and assets into the static directory. Always try to avoid using hosted images. If you are creating a new docs page, keep you images inside a subdirectory under static/docs.

New Components

Always try to use the existing components and features in markdown. Create a new component or use a component from npm, unless there is no other option.

Submitting Changes / New Doc Pages

We are happy to receive any pull requests with changes that could make our documentation better and easier to understand.

docs's People

Contributors

arunoda avatar austintoddj avatar dav-is avatar joecohens avatar juliangruber avatar justinmpier avatar leo avatar littlestudent avatar lucaperret avatar manovotny avatar matheuss avatar mcsdevv avatar nkzawa avatar oguzzkilic avatar olliv avatar orta avatar paulogdm avatar rauchg avatar rubymorillo avatar sergiodxa avatar shuding avatar styfle avatar thasophearak avatar tim-phillips avatar timhudson avatar timneutkens avatar timothyis avatar tootallnate avatar unicodeveloper avatar williamli avatar

Watchers

 avatar  avatar

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.