-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
3 changed files
with
102 additions
and
36 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 |
---|---|---|
@@ -1,41 +1,49 @@ | ||
name: GitHub Pages Deploy Action | ||
on: | ||
push: | ||
branches: | ||
- "develop" | ||
jobs: | ||
deploy-pages: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./packages/smooth_app | ||
steps: | ||
name: GitHub Pages Deploy Action | ||
on: | ||
push: | ||
branches: | ||
- "develop" | ||
jobs: | ||
deploy-pages: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./packages/smooth_app | ||
steps: | ||
|
||
- name: Chekout code | ||
uses: actions/checkout@v3 | ||
- name: Chekout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Flutter | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ runner.tool_cache }}/flutter | ||
key: flutter-2.5.0-stable | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
flutter-version: 2.5.0 | ||
- name: Setup Flutter | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ runner.tool_cache }}/flutter | ||
key: flutter-2.5.0-stable | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
flutter-version: 2.5.0 | ||
|
||
- name: Run Dartdoc | ||
run: pub global activate dartdoc && dartdoc | ||
- name: Run Dartdoc | ||
run: pub global activate dartdoc && dartdoc | ||
|
||
- name: Deploy smooth_app documentation to Github Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: packages/smooth_app/docs/ | ||
- name: Install mkdocs and mkdocs-material | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install mkdocs mkdocs-material | ||
- name: Deploy scanner documentation to Github Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: packages/smooth_app/docs/ | ||
- name: Build documentation using mkdocs | ||
run: mkdocs build | ||
|
||
- name: Deploy smooth_app documentation to Github Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: packages/smooth_app/docs/ | ||
|
||
- name: Deploy scanner documentation to Github Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: packages/smooth_app/docs/ |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
site_name: Open Food Facts mobile app | ||
docs_dir: doc | ||
repo_url: https://github.com/openfoodfacts/smooth-app | ||
edit_uri: blob/develop/docs/ | ||
site_dir: gh_pages | ||
|
||
theme: | ||
name: material | ||
palette: | ||
primary: beige | ||
text: black | ||
logo: assets/app/logo_text_black.svg | ||
|
||
markdown_extensions: | ||
- footnotes | ||
- mdx_truly_sane_lists | ||
- pymdownx.highlight | ||
- pymdownx.superfences | ||
|
||
plugins: | ||
- awesome-pages | ||
- search |