Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build-asciidoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build adocs

on:
push:
branches:
- master
jobs:
adoc_build:
runs-on: ubuntu-latest
name: Asciidoc build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get build container
id: adocbuild
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D docs -a stylesheet=style.css --backend=html5 -o index.html README.adoc && echo 'docs.upsilonproject.io' > docs/CNAME"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
program: "asciidoctor -D docs -a stylesheet=style.css --backend=html5 -o index.html README.adoc && echo 'docs.upsilonproject.io' > docs/CNAME"
program: "asciidoctor -D docs -a stylesheet=style.css --backend=html5 -o index.html README.adoc && echo 'mta-documentation.io' > docs/CNAME"

- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./docs/
94 changes: 94 additions & 0 deletions asciidoc-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
body {
font-family: sans-serif;
line-height: 1.5;
padding: 0;
margin: 0;
}

.article {
display: grid;
grid-template-areas: "nav content";
grid-template-columns: 20em 1fr;
grid-template-rows: auto;
}

a {
text-decoration: none;
}

#header {
background-color: #444;
grid-area: nav;
}

#toc {
padding: 1em;
}

#toc a {
color: white;
}

#toc li {
padding-bottom: .6em;
}

#toc ul {
list-style: none;
margin: 0;
padding: 0;
}

#toc ul ul {
padding-left: 1.4em;
}

#toctitle {
font-weight: bold;
color: white;
}

h1 {
font-size: 1.4em;
background-color: black;
padding: .6em;
margin: 0;
color: white;
}

#toc a:hover {
background-color: maroon;
}

#content {
background-color: white;
grid-area: content;
max-width: 1000px;
padding: 1em;
margin: auto;
}

#content img {
max-width: 100%;
}

pre {
background-color: #f7f7f8;
padding: 1em;
word-wrap: break-word;
white-space: pre-wrap;
}

table {
border-collapse: collapse;
}

td, th {
border: 1px solid gray;
padding: .4em;
}

th {
background-color: #f9f9f9;
text-align: left;
}