Giter VIP home page Giter VIP logo

tyk-docs's Introduction

Tyk Documentation

Contains the Tyk Documentation source.

How to contribute

We recommend contributing in the following way:

  • Fork this repository
  • Clone the forked repository on your machine
  • Create a remote branch, e.g git remote add upstream https://github.com/TykTechnologies/tyk-docs.git
  • Fetch from the remote branch git fetch upstream
  • Rebase your branch with the latest remote branch content git rebase upstream/master

The following guide briefly explains how to work with Hugo, you would then need push to your forked repository and then create a Pull Request to Tyk's master branch.

How to use

This pipeline uses hugo.

To use:

  1. Install Hugo - v0.27.1 or later
  2. Clone this repository
  3. Run hugo server --theme=tykio --buildDrafts
  4. Go to http://localhost:1313/docs to visit the landing page.

Adding and editing content

In the directory tyk-docs/content there is the content of the documentation.

To create a new page, you need to run:

hugo new your-full-path/index.md

we use index.md as if it were an index.html file.

In each file there is a "front matter": in hugo-speak:

---
date: 2017-03-08T18:15:57+13:00
title: Create an Account
menu:
  main:
    parent: 'Tyk Cloud'
weight: 5
---

You can create a dynamic, nested navigation heirarchy simply by changing the parent field to the name of the parent page (note, these names must be unique)

To create a new top-level page, the front matter just looks like this:

--- 
date: 2017-03-08T18:15:30+13:00
title: Get started with Tyk
menu: "main"
weight: 0
url: "/get-started-with-tyk"
---

Notice that we just define the menu field as a simple string.

Content

The content itself is just markdown that follows the front matter block. When you add and edit new content, hugo should auto-reload and you should be able to see the changes live in your browser (if not, refresh). Sometimes hugo gets confused and you need to re-run it.

License

Tyk is released under the MPL v2.0 please see the license file for a full version of the license.

The pipeline

If you push to this repository, Buddy Works will compile and push the static site to our dev server (details in slack).

tyk-docs's People

Contributors

marksou avatar consm avatar buger avatar asoorm avatar davegarvey avatar lonelycode avatar matiasinsaurralde avatar marians avatar excieve avatar cvillerm avatar huseyinbabal avatar violamarku avatar letzya avatar

Watchers

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