Skip to content

GannettDigital/api-docs

Repository files navigation

README - Data Connect API Documentation

Public facing documentation for the DataConnect APIs

Ownership

Set Up

Run locally

bundle install
bundle exec middleman server

Run locally using Docker

docker-compose up --build

and access your site at http://localhost:4567 until you stop the running container process.

Now that Slate is all set up on your machine, you'll probably want to learn more about editing Slate markdown, or how to publish your docs.

Editing or adding content

The starting point for content can be found at source/index.html.md. A reference for the Markdown syntax used in Slate can be found at https://github.com/slatedocs/slate/wiki/Markdown-Syntax.

Publishing to GitHub Pages

Run ./deploy.sh

Your changes should now be live on https://doc.api.localiq.com

Internal Only Documentation

ERB templates are supported, use them to hide internal only documentation:

For example:

<% if false %>
|markup_type| Only supported value is 'percentage'|%>
|markup_value|"cost" fields (spend & budget) will be marked up by this pecentage|
<% end %>