GithubHelp home page GithubHelp logo

brazuca228 / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexpate/docs

0.0 1.0 0.0 14.62 MB

Documentation of ZEIT Now and other services

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

License: MIT License

JavaScript 100.00%

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

Download the copy of this repostory.

git clone https://github.com/zeit/docs.git

Then visit to the downloaded repository and install dependencies with:

npm install 

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

npm run dev

Now the documentation is running at http://localhost:5800/docs and https://localhost:5800/api.

Editing Docs Content

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

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

Adding New Docs

You can start writing the new docs page by adding it to the pages/docs directory starting with the following code:

import markdown from 'markdown-in-js'
import withDoc, { components } from '../../../lib/with-doc'

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

// prettier-ignore
export default withDoc({
  title: 'The Title for the New Guide',
  date: '23 June 2017',
  authors: [],
  editUrl: 'pages/docs/category/file.js',
})(markdown(components)`

This is the content written in Markdown.

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

`)

Then you can add it to the sidebar by editing the file located at: lib/data/docs.js.

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.

Submiting Changes / New Doc Pages

You can simply send a PR. It's simple as that.

docs's People

Contributors

arunoda avatar leo avatar sergiodxa avatar timothyis avatar timneutkens avatar rauchg avatar austintoddj avatar nkzawa avatar lucaperret avatar littlestudent avatar orta avatar olliv avatar matheuss avatar justinmpier avatar timoftean avatar paulogdm avatar ragzor avatar revelt avatar rubymorillo avatar stevenmathews avatar stevealee avatar sloria avatar devisscher avatar tcr avatar trevordmiller avatar willshowell avatar brandonmp avatar dalenberg avatar tobkle avatar mikemcbride avatar

Watchers

James Cloos 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.