Skip to content

Commit

Permalink
docs: add autodoc output (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt authored Sep 23, 2024
1 parent e06f763 commit 557632f
Show file tree
Hide file tree
Showing 6 changed files with 4,830 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/update-autodoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: update autodoc

on:
schedule:
- cron: "0 6 * * 01" # every monday at 6 am (UTC)
workflow_dispatch:

jobs:
sync-autodoc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: download autodoc markdowns
run: |
destination=content/en/documentation/autodoc
wget https://raw.githubusercontent.com/eclipse-edc/Connector/refs/heads/gh-pages/autodoc/autodoc.md -O ${destination}/connector.md
wget https://raw.githubusercontent.com/eclipse-edc/IdentityHub/refs/heads/gh-pages/autodoc/autodoc.md -O ${destination}/identity-hub.md
wget https://raw.githubusercontent.com/eclipse-edc/FederatedCatalog/refs/heads/gh-pages/autodoc/autodoc.md -O ${destination}/federated-catalog.md
sed -i "1s;^;---\n title: Connector\n weight: 10\n---\n\n;" ${destination}/connector.md
sed -i "1s;^;---\n title: Identity-Hub\n weight: 20\n---\n\n;" ${destination}/identity-hub.md
sed -i "1s;^;---\n title: Federated-Catalog\n weight: 30\n---\n\n;" ${destination}/federated-catalog.md
- run: |
git config user.name "eclipse-edc-bot"
git config user.email "[email protected]"
git checkout -b update-autodoc
git add .
git commit -m "docs: update autodoc markdowns"
git push origin update-autodoc
- name: Create pull request
uses: thomaseizinger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
head: update-autodoc
base: main
title: "docs: update autodoc"
reviewers: ${{ github.actor }}
body: |-
This PR updates autodoc to the latest released versions.
Loading

0 comments on commit 557632f

Please sign in to comment.