Code Monkey home page Code Monkey logo

che-docs's Introduction

Workspace

Eclipse Che Docs

Eclipse Che uses Jekyll 3.3.1 to generate documentation from this repository as a static html webpages.

This repository houses documentation for Eclipse Che (repo / site). Content is held in markdown files in /src/main/_docs. Images should be placed in /src/main/_docs/assets/imgs.

Docs are built using Jekyll and the output is static HTML that is hosted at https://www.eclipse.org/che/docs/ and in the product at {che-domain}/docs.

Viewing Generated Documentation

Editing Docs

Workspace

Get a workpsace on codenvy.io which include all dependencies to edit and preview your changes by clicking on the image above.

Linking to Docs and Images

Because the docs are generated into static HTML linking to docs and images is a bit unusual. We provide a custom plugin _plugins/links.rb to create links.

Linking to a Page

A link is defined as: [<link description shown in html>]({{base}}{{sites.links["<file base name>"]}}#<section name>). For example to link to "_docs/workspace-administration/ws-agents.md" you would add the following to your MD:

[workspace agents]({{base}}{{sites.links["ws-agents"]}})

To link to a subsection of a markdown file add #<section name> at end of the link. The section name is the header text with spaces replaced by -. For example, the heading # Creating New Agent would be linked as #creating-new-agents.

Linking to an Image

To add a link to /docs/assets/imgs/quick-documentation.png into your MD you can use: ![quick-documentation.png]({{base}}{{sites.links["quick-documentation.png"]}})

Understanding the Links Plugin

The links plugin uses the following variables in _config.yml file: - Each defaults.value.categories is used to create the permalink used in a markdown file. - Each collections is used to find file paths for each markdown file specified in the _data folder.

  • YAML files in _data are used to create the navigation bar on the right side of page.

Naming Conventions

Adding a New Markdown File

The file name must always begin with a prefix for the section it is part of. See other pages in the section you are adding to for the prefix to be used.

All new files need to have the same front matter information at the top of the MD file:

---
tags: [ "eclipse" , "che" ]         // Do not change
title: Chefile                      // Your title, do not use quotation marks
excerpt: "Che for your repo."       // Optional short summary
layout: docs                        // Should use `docs` or `tutorial`
permalink: /:categories/chefiles/   // Should match the other files in the folder
---
{% include base.html %}             // Do not change, allows relative paths to work

Your content can start after this.

Adding a New Section

New sections are represented as folders in https://github.com/codenvy/che-docs/tree/master/src/main/_docs. Folder names must contain lowercase a-z characters and - to seperate words.

Building Docs

Docs are built using a Docker image with Jekyll inside it. You need Docker and Bash installed to build and host the Che docs.

You can use codenvy.io factory to easily compile and view documentation. Just click here.

You can also use the following locally.

$ git clone http://github.com/eclipse/che-docs
$ cd che-docs/src/main/
$ bash docs.sh --run

# Markdown converted to static HTML and launches Jekyll server at http://localhost:9080

The Jekyll server will scan for changes to the .md files every 2 seconds and auto-update the generated HTML.

Getting Help

If you have questions or problems, please create an issue in this repo.

che-docs's People

Contributors

slemeur avatar benoitf avatar mshaposhnik avatar tsmaeder avatar dmytro-ndp avatar kaloyan-raev avatar skabashnyuk avatar vinokurig avatar mmorhun avatar sunix avatar jonahgraham avatar l0rd avatar mkuznyetsov avatar vnea avatar olexii4 avatar vorburger avatar jamesdrummond avatar davidfestal avatar ashumilova avatar micheleminno avatar cifren avatar rimolive avatar philippgille avatar mavimo avatar grossjonas avatar jalessio avatar devcomb avatar hkolvenbach avatar gorkem avatar gbraad avatar

Watchers

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