Skip to content

Commit

Permalink
Lets generate webpage preview at PR
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Oct 14, 2024
1 parent 108baa6 commit c16532d
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/pdf-at-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,49 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
path: documentation

- uses: actions/checkout@v4
with:
ref: www
path: www

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
cd documentation
python -m pip install --upgrade pip
pip install setuptools wheel
pip install -r requirements.txt
- name: Run mkdocs --clean
run: |
cd documentation
mkdocs build --clean
- name: Upload pdf
uses: actions/upload-artifact@v4
- name: Push to web
run: |
cd www
mkdir -p "${{ github.event.number }}"
rsync -av ../documentation/site/. ${{ github.event.number }}
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Updating repo" || true
git push origin www || true
- uses: devindford/Append_PR_Comment@v1.1.2
with:
name: artifact
path: site/pdf/document.pdf
repo-token: "${{ secrets.GITHUB_TOKEN }}"
body-template: |
[![Create offline documentation on PR](https://github.com/armbian/documentation/actions/workflows/pdf-at-pr.yaml/badge.svg)](https://github.com/armbian/documentation/actions/workflows/pdf-at-pr.yaml)
Documentation website preview will be available in few minutes:
<a href=https://armbian.github.io/documentation/${{ github.event.number }}><kbd> <br> Open WWW preview <br> </kbd></a>
body-update-action: 'suffix'
33 changes: 33 additions & 0 deletions docs/Software.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Desktop environments

## Overview

### Desktops

- [**XFCE desktop**](#xfce-desktop)
- [**Gnome desktop**](#gnome-desktop)


## XFCE desktop

<!---header from docs/DE00-header.md--->
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

![Xfce desktop](images/DE00.png){: width="800" height="450" loading="lazy"}

Installation:

```sh
armbian-config --cmd DE01
```
<!---footer from docs/DE00-footer.md--->
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.


## Gnome desktop

<!---header from docs/DE00-header.md--->
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

<!---footer from docs/DE00-footer.md--->
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Binary file added docs/images/DE00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c16532d

Please sign in to comment.