remove mkdocs config, remove frogejo action for now
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -1,88 +0,0 @@
|
||||
name: Nicolium CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["develop"]
|
||||
pull_request:
|
||||
branches: ["develop"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
container:
|
||||
image: "ghcr.io/catthehacker/ubuntu:runner-22.04"
|
||||
runs-on: docker
|
||||
name: Test and upload artifacts
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [22.x]
|
||||
|
||||
steps:
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y zip
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install deps
|
||||
working-directory: ./packages/nicolium
|
||||
run: yarn install --ignore-scripts
|
||||
|
||||
- name: Lint
|
||||
working-directory: ./packages/nicolium
|
||||
run: yarn lint
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
NODE_ENV: production
|
||||
working-directory: ./packages/nicolium
|
||||
run: yarn build
|
||||
|
||||
- name: i18n
|
||||
working-directory: ./packages/nicolium
|
||||
run: |
|
||||
yarn i18n
|
||||
git diff
|
||||
git diff --quiet || (echo "Locale files are out of date. Please run \`yarn i18n\`" && exit 1)
|
||||
|
||||
- name: Include archive
|
||||
working-directory: ./packages/nicolium/dist
|
||||
run: zip -r ../nicolium.zip .
|
||||
|
||||
- name: Build with landing page
|
||||
env:
|
||||
NODE_ENV: production
|
||||
working-directory: ./packages/nicolium
|
||||
run: |
|
||||
WITH_LANDING_PAGE=true yarn build
|
||||
cp dist/index.html dist/404.html
|
||||
cp nicolium.zip dist/pl-fe.zip
|
||||
|
||||
- name: Install pl-api deps
|
||||
working-directory: ./packages/pl-api
|
||||
run: yarn install --ignore-scripts
|
||||
|
||||
- name: Build pl-api documentation
|
||||
working-directory: ./packages/pl-api
|
||||
run: npx typedoc
|
||||
|
||||
- name: Copy pl-api documentation
|
||||
working-directory: ./packages/pl-api
|
||||
run: cp docs ../nicolium/dist/pl-api-docs -r
|
||||
|
||||
- name: cloudflare lol
|
||||
working-directory: .
|
||||
run: yarn add wrangler -W
|
||||
|
||||
- name: Deploy to Cloudflare
|
||||
uses: https://github.com/cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy packages/nicolium/dist --project-name=plfe
|
||||
30
mkdocs.yml
30
mkdocs.yml
@ -1,30 +0,0 @@
|
||||
site_name: Nicolium Documentation
|
||||
site_url: https://pl.mkljczk.pl/docs/
|
||||
theme:
|
||||
name: material
|
||||
language: en
|
||||
font: false
|
||||
features:
|
||||
- header.autohide
|
||||
palette:
|
||||
- scheme: slate
|
||||
toggle:
|
||||
icon: material/brightness-7
|
||||
name: Switch to light mode
|
||||
- scheme: default
|
||||
toggle:
|
||||
icon: material/brightness-4
|
||||
name: Switch to dark mode
|
||||
plugins:
|
||||
- search:
|
||||
lang: en
|
||||
- include-markdown
|
||||
markdown_extensions:
|
||||
- admonition
|
||||
- pymdownx.highlight:
|
||||
anchor_linenums: true
|
||||
line_spans: __span
|
||||
pygments_lang_class: true
|
||||
- pymdownx.inlinehilite
|
||||
- pymdownx.snippets
|
||||
- pymdownx.superfences
|
||||
Reference in New Issue
Block a user