Giter VIP home page Giter VIP logo

internal-doc's Introduction

API Portal Template

Table of Contents

  1. General Information
  2. Installation
  3. Add your APIs
  4. Repository architecture

General information

This repository is used as a template for the Talend API Portal based on HUGO.

Useful links:

Installation

  1. Install Hugo.
  2. Clone this repository.
  3. Run Hugo:
# Start the server
hugo server

# Or start the server with building draft files
hugo server -D
  1. Visit your API Portal on your browser.

Add your APIs

There are 2 different ways to add APIs into the Portal:

  1. By using API Designer. See documentation for more information.
  2. By using the management API. See documentation for more information.

Repository architecture

API Portal repository looks like this by default:

.
├── apis
│   └── _index.md
├── assets
│   └── css
│       └── 02_variables.css
├── CHANGELOG.md
├── config.toml
├── content
│   ├── getting-started.md
│   └── _index.md
├── NOTICE
├── README.md
├── static
│   └── img
│       └── brand-logo.png
└── themes
    └── ...

An overview of what each of these directories or files are using for:

Directory / File Description
apis Contains the API documentation to publish. It should have a folder for each API, and each of these should contain a folder per version. The documentation for an API version should be located in apis/<api-name>/<api-version>/index.md. Other definition formats such as OAS3 or Swagger 2 could be located in apis/<api-name>/<api-version>/ based on your configuration. These formats will be only used in case of download of an API.
assets Contains files managed by the user, such as JavaScript and CSS files. The following file assets/css/02_variables.css is provided by default in order to allow you to overwrite some CSS rules to customize easily your Portal. Feel free to change it.
CHANGELOG.md A log of all notable changes made to the project.
config.toml The configuration file for a HUGO project. It contains the configuration for the portal. It specifies the theme to use when generating the site. Also, this configuration allows you to change the site name and to organize your APIs into categories.
content Contains any other page that you want to include in your portal. By default it contains a landing page and a "Getting started" page.
NOTICE The repository notice. Make sure you have read it.
README.md /
static Contains static files managed by the user, such as images and fonts. By default there is only img/brand-logo.png which is the image used in the header.
themes Contains the themes necessary to make the portal working. Talend provides a default API Portal Theme.

internal-doc's People

Contributors

tgourdel 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.