GithubHelp home page GithubHelp logo

zhoudaqing / documentation-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nunetwork/documentation

0.0 1.0 0.0 1.28 MB

Documentation for how to use and integrate with the Nu cryptoasset client, core protocol and its consensus and transactional tokens, NuShares (NSR) and NuBits (US-NBT).

Home Page: https://docs.nubits.com

HTML 51.28% CSS 48.72%

documentation-1's Introduction

documentation

This repo contains the source for [docs.nubits.com] (http://docs.nubits.com). The page is generated directly from the source in this repo using [github pages] (https://pages.github.com/)

Gitter

Contribute

If you want to contribute to the documentation feel free to fork this repository and submit a PR.

Adding a new page is as easy as creating a new file under the _kb directory and filling it with proper metadata at the top of the file :

---
title: <Explanatory title>
nav_heading: <the category of navbar - see _data/navigation.yml>
filename: <name-of-the-file.md>
permalink: <permalink to doc ( e.g. /accept-nubits/ )>
layout: kb
lang: en
callouts:
---

You can see an example of the raw text for the front page of docs.nubits.com here

callouts

Callouts can draw the users attention to important information. Adding a callout first requires to add callout metadata to the top of the page. You can see an example of two callouts described below.

callouts:
  - shortname: hidden-dirs
    type: warning
    title: Data directories are hidden by default
    body: | # this means to ignore newlines until "- shortname:"
      Data directories are usually marked as hidden folders by default, meaning you will have to change some settings in order to see them. Please review the links below for your platform on how to enable viewing hidden folders.

      - [Windows](http://www.howtogeek.com/howto/windows-vista/show-hidden-files-and-folders-in-windows-vista/)  
      - [Linux](http://www.howtogeek.com/howto/ubuntu/view-hidden-files-and-folders-in-ubuntu-file-browser/)  
      - [OSX](http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/)
  - shortname: line-comments
    type: info
    title: Adding comments to the conf file
    body: Lines that start with \# are comments, and are ignored

Note the spacing, as this is important when describing callouts. Once a callout has been described in the metadata you can add it into the body of the document using the code below.

{% include callout-block.html name="hidden-dirs" %}

This code will be replaced with the callout box when the page is rendered. Notice that the name field must be the same as the shortname field in the callout metadata. There are three kinds of callouts. Info, warning, and danger, which are differentiated by different icons and colors.

danger callout info callout warning callout

documentation-1's People

Contributors

adv0r avatar brossi avatar cacciatc avatar coingame avatar desrever-nu avatar gitter-badger avatar jooize avatar lamz0rnewb avatar willyfromtheblock avatar

Watchers

 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.