-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" | ||
/> | ||
<title>Platform.Bible API</title> | ||
<style> | ||
body { | ||
font-family: 'Roboto', sans-serif; | ||
margin: 40px; | ||
padding: 20px; | ||
background-color: #fcfcfc; | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
color: #121212; | ||
font-weight: 700; | ||
} | ||
|
||
a { | ||
display: inline-block; | ||
margin: 20px 10px; | ||
padding: 10px; | ||
background-color: #a70e13; | ||
color: #fcfcfc; | ||
text-decoration: none; | ||
border-radius: 5px; | ||
transition: background-color 0.3s ease; | ||
} | ||
|
||
a:hover { | ||
background-color: #830c14; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>Platform.Bible API</h1> | ||
<a href="papi-components/index.html">Go to papi-components</a> | ||
<a href="papi-dts/index.html">Go to papi-dts</a> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,14 @@ jobs: | |
publish-docs: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node_version: [18.x] | ||
|
||
steps: | ||
- name: Checkout git repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node and NPM | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: 18.x | ||
cache: npm | ||
|
||
- name: Install and build | ||
|
@@ -29,18 +25,26 @@ jobs: | |
npm run build | ||
- name: Build documentation | ||
run: | # renaming the folders so that pages links at /{their name} instead of at /docs | ||
cd ~/lib/papi-components | ||
npm run build:docs | ||
mv docs papi-components | ||
cd ~/lib/papi-dts | ||
npm run build:docs | ||
mv docs papi-dts | ||
run: | # need to specify --out so pages links at /{their name} instead of at /docs | ||
cd lib/papi-components | ||
npm run build:docs -- --out papi-components | ||
cd ../papi-dts | ||
npm run build:docs -- --out papi-dts | ||
cd ../../ | ||
mkdir docs-for-pages | ||
mv lib/papi-components/papi-components docs-for-pages | ||
mv lib/papi-dts/papi-dts docs-for-pages | ||
- name: Add nojekyll # needed so that HTML pages that start with _ do not cause 404 | ||
run: touch docs-for-pages/.nojekyll | ||
|
||
- name: Add landing page | ||
run: | | ||
cp .github/assets/github-pages-index.html docs-for-pages | ||
mv docs-for-pages/github-pages-index.html docs-for-pages/index.html | ||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: github-pages | ||
folder: | | ||
lib/papi-components/papi-components | ||
lib/papi-dts/papi-dts | ||
folder: docs-for-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"entryPoints": ["src"], | ||
"entryPointStrategy": "expand", | ||
"exclude": ["src/index.ts"], | ||
"entryPoints": ["src/index.ts"], | ||
"out": "docs", | ||
"tsconfig": "tsconfig.json", | ||
"sort": ["kind", "alphabetical"], | ||
"kindSortOrder": ["Function"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters