Skip to content

Commit 7f27dc8

Browse files
authored
Merge branch 'main' into fix_misc
Signed-off-by: fulleni <[email protected]>
2 parents 12302d6 + 725d211 commit 7f27dc8

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy to GitHub Pages on Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm install
28+
29+
- name: Build
30+
run: npm run build
31+
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v5
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: ./dist
39+
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import starlight from '@astrojs/starlight';
44

55
// https://astro.build/config
66
export default defineConfig({
7+
site: 'https://flutter-news-app-full-source-code.github.io',
8+
base: '/docs',
79
integrations: [
810
starlight({
911
title: 'Flutter News App Toolkit',

src/content/docs/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ hero:
88
file: ../../assets/flutter-news-app-full-source-code-logo.png
99
actions:
1010
- text: 'Get Started: Local Setup'
11-
link: /getting-started/
11+
link: /docs/getting-started/
1212
icon: right-arrow
1313
- text: 'View Live Demos'
1414
link: '#ecosystem'
@@ -106,7 +106,7 @@ Welcome to the Flutter News App Full Source Code Toolkit. This is more than just
106106
machine. The trial license allows for a full evaluation of the project's
107107
quality and features for 32 days.
108108
<div style={{ marginTop: '1.5rem' }}>
109-
<LinkButton href="/getting-started/">Begin Local Setup</LinkButton>
109+
<LinkButton href="/docs/getting-started/">Begin Local Setup</LinkButton>
110110
</div>
111111
</Card>
112112
<Card title="Purchase a Lifetime License" icon="rocket">

src/content/docs/mobile-client/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ The mobile client comes packed with features designed to provide a comprehensive
3939

4040
To get the mobile client up and running on your local machine, head over to our setup guide.
4141

42-
- **[Local Setup Guide](./getting-started/local-setup)**
42+
- **[Local Setup Guide](./mobile-client/local-setup)**

0 commit comments

Comments
 (0)