Giter Site home page Giter Site logo

docs's Introduction

Stellar Docs

This repository is home to the Stellar documentation. These docs feed into the Stellar developers site builder and are on display at stellar.org/developers.

How to write docs

There are a few conventions when writing docs that go into the Stellar Developers site. Most of the docs are written in Markdown format. For an introduction to Markdown, take a look at Github's Mastering Markdown Guide.

Headers

Lines that start with a hash symbol (#) are considered headers. Below is an example of a few and the name of the header:

# h1
## h2
### h3
#### h4
  • DO NOT use h1 since that is reserved for the page title generated from front matter.
  • DO NOT skip a header size (don't go from h2 to h4).
  • DO use smaller headers (more hash symbols) to represent that a section is nested under a parent one with a larger header.
  • DO add a space after the hash symbols. Some Markdown parsers will not render the text as a header without the space.

Front matter

At the top of most documents is something called "front matter". This is metadata for the file written in YAML format.

Here is an example of front matter in action:

---
title: Horizon Reference
---

The currently used keys in the front matter are:

  • title

Document title

Do not start a page with a Markdown header (# Title). Instead, leave it in the front matter. The developers site will take the title from the front matter.

Links

Use inline links and not reference links.

There are three different kinds of links, and each different kind of link has a significant meaning. Some of these links are transformed in the generation of the developers site.

link type where to use markdown link example resulting link (after dev portal processing)
Relative
  • links within same repository
../reference/accounts-all.md ../reference/accounts-all.html
Root relative
  • when you want to use the GitHub file viewer (e.g. for source files)
/src/ledger/AccountFrame.cpp https://github.com/stellar/CURRENT-REPOSITORY/tree/master/src
Absolute links https://www.stellar.org/developers/js-stellar-base/learn/building-transactions.html https://www.stellar.org/developers/js-stellar-base/learn/building-transactions.html

Non-markdown files

Sometimes we want to include other types of content such as .pdf's. To add front matter to the PDF, create a sibling file with the PDF file name and an added extension of .metadata. This file can then define metadata for the title of the .pdf.

An example can be seen in stellar-core's software folder.

Contributing

Your contributions to the Stellar network will help improve the world’s financial infrastructure, faster.

We want to make it as easy as possible to contribute changes that help the Stellar network grow and thrive. There are a few guidelines that we ask contributors to follow so that we can merge your changes quickly. Please read our Contribution Guide and sign our Contributor License Agreement.

docs's People

Contributors

0xkolten avatar abuiles avatar bartekn avatar bekkibolthouse avatar cm-abhijit avatar codeck avatar dydt avatar edunuzzi avatar gdb avatar ire-and-curses avatar irisli avatar jedmccaleb avatar johansten avatar julanrouge avatar kylemccollom avatar monsieurnicolas avatar mozzadrella avatar mr0grog avatar nikhilsaraf avatar nullstyle avatar poliha avatar rice2000 avatar tammycamp avatar theaeolianmachine avatar thejollyrogers avatar tomquisel avatar vcarl avatar wynlim avatar zacf avatar zachvanduyn 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.