Skip to content

Commit df499d3

Browse files
committed
Baselines
0 parents  commit df499d3

File tree

8 files changed

+115
-0
lines changed

8 files changed

+115
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy mdBook to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
# Install Rust
25+
- name: Install Rust
26+
uses: dtolnay/rust-toolchain@stable
27+
28+
# Install mdBook via cargo
29+
- name: Install mdBook
30+
run: cargo install mdbook
31+
32+
- name: Configure Pages
33+
id: pages
34+
uses: actions/configure-pages@v5
35+
36+
- name: Build
37+
run: mdbook build
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: ./book
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
book

book.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[book]
2+
title = "cloudexit - docs"
3+
description = "Documentation for cloudexit (EscapeCloud Community Edition)"
4+
authors = ["Bence Hezso"]
5+
language = "en"
6+
7+
[output.html]
8+
theme = "theme"
9+
additional-css = ["theme/custom.css"]

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Summary

theme/custom.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* exitcloud.io docs – minimal clean styling */
2+
.content {
3+
line-height: 1.75;
4+
}
5+
6+
@media (min-width: 1024px) {
7+
.content {
8+
max-width: 900px;
9+
}
10+
}
11+
12+
/* Slightly larger base text */
13+
html {
14+
font-size: 16px;
15+
}
16+
17+
/* Softer code blocks */
18+
pre, code {
19+
border-radius: 10px;
20+
}
21+
pre {
22+
padding: 1rem;
23+
}

theme/favicon.ico

4.19 KB
Binary file not shown.

theme/favicon.png

12.5 KB
Loading

theme/head.hbs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{{! Custom head for exitcloud.io docs }}
2+
<meta charset="UTF-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1">
4+
<meta name="theme-color" content="#ffffff">
5+
6+
{{! Default mdBook inserts }}
7+
{{#if title}}
8+
<title>{{title}}</title>
9+
{{/if}}
10+
11+
{{#if description}}
12+
<meta name="description" content="{{description}}">
13+
{{/if}}
14+
15+
{{! mdBook default styles/scripts }}
16+
<link rel="stylesheet" href="{{ path_to_root }}css/variables.css">
17+
<link rel="stylesheet" href="{{ path_to_root }}css/general.css">
18+
<link rel="stylesheet" href="{{ path_to_root }}css/chrome.css">
19+
<link rel="stylesheet" href="{{ path_to_root }}css/print.css" media="print">
20+
21+
{{#each additional_css}}
22+
<link rel="stylesheet" href="{{ ../path_to_root }}{{this}}">
23+
{{/each}}
24+
25+
<script src="{{ path_to_root }}js/vendor/jquery.js"></script>
26+
<script src="{{ path_to_root }}js/vendor/clipboard.min.js"></script>
27+
<script src="{{ path_to_root }}js/vendor/highlight.js"></script>
28+
<script src="{{ path_to_root }}js/book.js"></script>

0 commit comments

Comments
 (0)