Skip to content

Commit 21b4e09

Browse files
authored
Merge pull request #30 from kixi-io/develop
Readme and custom styles
2 parents 7832258 + 80680a3 commit 21b4e09

2 files changed

Lines changed: 103 additions & 1 deletion

File tree

README.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,75 @@
11
# KI Documentation
2-
[Ki Languages Wiki](https://github.com/kixi-io/Docs/wiki)
2+
3+
This repo contains the documentation for Ki languages.
4+
5+
The docs site is published to [Kixi Docs](https://kixi-io.github.io/Ki.Docs/)
6+
7+
## Set up and deployment
8+
9+
The docs site is build using GitHub Pages with Jekyll. It uses the [Just the Docs](https://github.com/just-the-docs/just-the-docs) remote theme.
10+
11+
`_config.yml` contains the configuration for the site.
12+
13+
Publishing is done via GitHub settings under Pages. It builds off of the `master` branch using the `/docs` folder as the source.
14+
15+
The site is built when changes are pushed to `master`.
16+
17+
## Branches
18+
19+
- `master` - main branch, contains the docs site in `/docs` folder
20+
- `develop` - development branch for working on docs before merging to `master`
21+
- It is not necessary or enforced to use this branch, but can be useful for batching larger changes.
22+
23+
### Workflows
24+
25+
Use one of the following workflows to update content.
26+
27+
1. Directly edit files in `master` and commit. Changes will be published on commit.
28+
2. Create a feature branch off of `master` then merge the feature branch into `master` via PR.
29+
3. Merge master into `develop` to update with the most updated changes, then either create a feature branch off `develop` or work directly in `develop`. When changes are ready, create a PR to merge `develop` into `master` and then merge the PR to publish.
30+
31+
## Editing content
32+
33+
Content files are in markdown format (`.md`) and are located in the `/docs` folder.
34+
35+
Images are placed in the `/docs/assets/images` folder. They can be referenced in markdown files using relative paths, for example:
36+
37+
```markdown
38+
![KD Schema Diagram](/assets/images/KD_Schema_Diagram.png)
39+
```
40+
41+
Markdown process is using Kramdown, which is the default for Jekyll. Kramdown support GitHub Flavored Markdown (GFM) features such as fenced code blocks, tables, and strikethrough, however it is more strict with syntax than GitHub.
42+
43+
### Front matter
44+
45+
Front matter is used to set page-specific variables for Jekyll. Each markdown file should have front matter at the top of the file enclosed in `---` lines. At a minimum, each file should have a `title` variable.
46+
47+
Example front matter:
48+
49+
```frontmatter
50+
---
51+
title: Home
52+
nav_order: 1
53+
---
54+
```
55+
56+
`nav_order` is used to set the order of pages in the left navigation. Lower numbers appear first. If not set the page appears at the end of the navigation in alphabetical order.
57+
58+
## Left navigation
59+
60+
The left navigation is automatically generated from the markdown files in the `/docs` folder. The order is determined by the `nav_order` variable in the front matter of each file.
61+
62+
Appended to the bottom of the left nav are external links defined in `_config.yml` under `nav_external_links:`.
63+
64+
65+
## Customizations
66+
67+
`_sass/color_schemes/wider.scss` contains a customization to adjust the width of the site. It is used in `_config.yml` under `color_scheme: wider`.
68+
69+
`_sass/custom/custom.scss` contains css overrides and customizations. It is referenced automatically by Just the Docs.
70+
71+
## emoji code support
72+
73+
The site uses the `jemoji` plugin to support emoji code like `:smile:`. It is enabled in `_config.yml` under `plugins:`.
74+
75+
`jemoji` does not support GitHub custom emoji codes such as `:octocat:`.

docs/_sass/custom/custom.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* Modify/override style classes here */
2+
/* This is particular to the Just the Docs theme */
3+
/* h1 { color: #FF0000; } */
4+
5+
/* table styling */
6+
.table-wrapper table thead th {
7+
background-color: #d1d7dc;
8+
}
9+
.table-wrapper table tbody tr:nth-child(odd) {
10+
background-color: #ffffff;
11+
}
12+
.table-wrapper table tbody tr:nth-child(even) {
13+
background-color: #f5f6fa;
14+
}
15+
.table-wrapper table td {
16+
background-color: transparent;
17+
}
18+
19+
/* triple tick code blocks */
20+
div.highlight, pre.highlight {
21+
background-color: #f5f6fa;
22+
}
23+
24+
/* inline single-tick code blocks */
25+
:not(pre,figure) > code {
26+
padding: 0.4em 0.4em;
27+
background-color: #f5f6fa;
28+
border: 1px solid #999999;
29+
}

0 commit comments

Comments
 (0)