Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit c0ae75b

Browse files
authored
Merge pull request #693 from UziTech/build-docs
2 parents da2f977 + 87eed8f commit c0ae75b

File tree

17 files changed

+439
-832
lines changed

17 files changed

+439
-832
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'Update Docs'
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
docs:
10+
name: Update Docs
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v1
15+
- name: Install Packages
16+
run: npm install
17+
- name: Build Docs
18+
run: npm run docs
19+
- name: Deploy 🚢
20+
uses: cpina/github-action-push-to-another-repository@master
21+
env:
22+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
23+
with:
24+
source-directory: 'public'
25+
destination-github-username: 'ldapjs'
26+
destination-repository-name: 'ldapjs.github.io'
27+
user-email: '[email protected]'
28+
target-branch: 'gh-pages'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,6 @@ xcuserdata
7575
*.pem
7676
*.env.json
7777
*.env
78+
79+
# built docs
80+
public

docs/branding/footer.html.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
</div><!-- end #content -->
2+
13
<script type="text/javascript" charset="utf-8">
24
$(function() {
35
var headerHeight = $("#header").height();

docs/branding/header.html.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>%(title)s</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6-
<link rel="stylesheet" type="text/css" href="%(mediaroot)s/css/restdown.css">
6+
<link rel="stylesheet" type="text/css" href="media/css/style.css">
77
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
88
</head>
99
<body>
@@ -30,3 +30,5 @@
3030
</span>
3131
%(toc_html)s
3232
</div>
33+
34+
<div id="content">

docs/branding/media/css/restdown.css

Lines changed: 0 additions & 325 deletions
This file was deleted.

0 commit comments

Comments
 (0)