Skip to content

Commit a44a280

Browse files
committed
Update deployment workflow, remove blog section, add video demo
1 parent 1b59949 commit a44a280

File tree

3 files changed

+27
-30
lines changed

3 files changed

+27
-30
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

@@ -27,16 +27,12 @@ jobs:
2727
- name: Build website
2828
run: cd jline-docs && npm run build
2929

30-
# Popular action to deploy to GitHub Pages:
31-
# Docs: https://github.com/peaceiris/actions-gh-pages
32-
- name: Deploy to GitHub Pages
33-
uses: peaceiris/actions-gh-pages@v3
34-
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
# Build output to publish to the `gh-pages` branch:
37-
publish_dir: ./jline-docs/build
38-
# The following lines assign commit authorship to the official
39-
# GH-Actions bot for deploys to `gh-pages` branch:
40-
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
41-
user_name: 'github-actions[bot]'
42-
user_email: 'github-actions[bot]@users.noreply.github.com'
30+
# Deploy directly to master branch
31+
- name: Copy build files to root
32+
run: |
33+
cp -R jline-docs/build/* .
34+
git config --global user.name 'github-actions[bot]'
35+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
36+
git add .
37+
git commit -m "Deploy website" || echo "No changes to commit"
38+
git push origin master

jline-docs/docusaurus.config.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,7 @@ const config: Config = {
4242
editUrl:
4343
'https://github.com/jline/jline.github.io/edit/main/',
4444
},
45-
blog: {
46-
showReadingTime: true,
47-
feedOptions: {
48-
type: ['rss', 'atom'],
49-
xslt: true,
50-
},
51-
// Please change this to your repo.
52-
// Remove this to remove the "edit this page" links.
53-
editUrl:
54-
'https://github.com/jline/jline.github.io/edit/main/',
55-
// Useful options to enforce blogging best practices
56-
onInlineTags: 'warn',
57-
onInlineAuthors: 'warn',
58-
onUntruncatedBlogPosts: 'warn',
59-
},
45+
// blog section removed
6046
theme: {
6147
customCss: './src/css/custom.css',
6248
},
@@ -80,7 +66,7 @@ const config: Config = {
8066
position: 'left',
8167
label: 'Documentation',
8268
},
83-
{to: '/blog', label: 'Blog', position: 'left'},
69+
// blog link removed
8470
{
8571
href: 'https://github.com/jline/jline3',
8672
label: 'GitHub',

jline-docs/src/pages/index.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@ export default function Home(): ReactNode {
3838
<HomepageHeader />
3939
<main>
4040
<HomepageFeatures />
41+
<div className="container margin-vert--xl">
42+
<div className="row">
43+
<div className="col col--8 col--offset-2">
44+
<div className="text--center margin-bottom--lg">
45+
<Heading as="h2">See It in Action</Heading>
46+
<p>Watch JLine's capabilities in this interactive demo:</p>
47+
</div>
48+
<div className="text--center">
49+
<a href="https://asciinema.org/a/683979" target="_blank" rel="noopener noreferrer">
50+
<img src="https://asciinema.org/a/683979.svg" alt="JLine gogo demo" width="100%" />
51+
</a>
52+
</div>
53+
</div>
54+
</div>
55+
</div>
4156
</main>
4257
</Layout>
4358
);

0 commit comments

Comments
 (0)