Okta developer site (developer.okta.com) is a custom Jekyll site deployed on GitHub pages
All API documentation submissions are welcome. To submit a change, fork this repo, commit your changes, and send us a pull request
- Clone repository
~ $ gem install github-pages
orbundle install
'` if you use bundler~ $ cd okta.github.io
~ $ jekyll serve -w -t
- Change CNAME with the right subdomain
- Visit
http:https://localhost:4000
in your browser
Pages are single purpose html or markdown files
- Create a folder with
index.html
file. (e.g. pricing/index.html) - Author front matter as follows:
---
layout: page
title: YOUR_TITLE
css: CSS_FILENAME.css (optional page specific css file)
---
- Put html or css content under front matter
- Expose link to page in header or elsewhere. URL will be the folder
name,
index.html
is not necessary (e.g. /pricing)
- Create
PAGE_NAME.md
indocs/FOLDER_NAME
(e.g. docs/api/rest/users.md) - Filenames are underscore seperated and all lowercase. (e.g. my_cool_doc_page.md)
- Author front matter
---
layout: docs_page
title: Title Case Name of Page
---
- The content under the front matter should not have any
h1
s - this will be set by thetitle
property - All
h2
s in the content will be rendered as a link in the table of contents - Create placement entry in manifest at
_data/docs.yml
in appropriatepages
section. - The
pages
name must match the filename without extension. (e.g.users.md
=>users
) - To create a new section in the manifest
section: NAME_OF_FOLDER
title: TITLE_CASE_NAME_OF_SECTION
- The sections structure should follow the folder names
- The ordering of sections and pages in the manifest determines the order in which they appear in the leftnav
- Create an
index.md
folder incustomers/CUSTOMER_NAME
(e.g. customers/box/index.md) - Create the images:
`index_image`: 220px x 165px @144dpi // image used on index page
`header_image`: 1080px x 220px @144dpi // title bar image on story page
`diagram_image`: 694px x <n>px @144dpi // information graphic at bottom of story page
- Author front matter
`index_blurb` will be clipped over three lines of text
`sidebar_copy` will be markdownified. Newlines sohuld be doubled.
- Create an entry in _data/authors.yml
- Put avatar image in assets/img. Make sure aspect ratio of image is square.