diff --git a/.github/workflows/xlog.yml b/.github/workflows/xlog.yml new file mode 100644 index 0000000..6313202 --- /dev/null +++ b/.github/workflows/xlog.yml @@ -0,0 +1,75 @@ +name: Xlog + +on: + push: + branches: [ "master" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: restore timestamps + uses: chetan/git-restore-mtime-action@v1 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + check-latest: true + + - name: Install xlog + run: | + go install github.com/emad-elsaid/xlog/cmd/xlog@latest + + - name: Build + run: | + xlog \ + --build . \ + --sitename "𓆚 Hydra" \ + --index=README \ + --sitemap.domain=hydra.emadelsaid.com \ + --activitypub.domain=hydra.emadelsaid.com \ + --activitypub.username=hydra \ + --activitypub.summary="𓆚 C implementation of the famous Emacs Hydra package to be used in terminal. Groups commands and assign each command a key binding" \ + --og.domain=hydra.emadelsaid.com \ + --github.repo=https://github.com/emad-elsaid/hydra \ + --rss.domain=hydra.emadelsaid.com \ + --rss.description="𓆚 C implementation of the famous Emacs Hydra package to be used in terminal. Groups commands and assign each command a key binding" + rm *.md + chmod -R 0777 . + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v1.0.4 + with: + path: . + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/README.md b/README.md index 67b26ff..e583996 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ a C implementation of [Emacs Hydra](https://github.com/abo-abo/hydra) package to ## What is 𓆚 Hydra -Just list Emacs 𓆚 Hydra. It's a program that groups your terminal commands and bind them to common key on your keyboard. Commands can also be grouped in a tree like structure each node in the tree has a name and key bound to it. +Just like Emacs 𓆚 Hydra. It's a program that groups your terminal commands and bind them to common key on your keyboard. Commands can also be grouped in a tree like structure each node in the tree has a name and key bound to it. [Spacemacs](https://www.spacemacs.org/) for example is an emacs configuration centered around 𓆚 Hydra commands, with all user commands grouped as trees bound in a mnemonic way. for example: diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..24a2818 Binary files /dev/null and b/logo.png differ diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..dbf4f5b --- /dev/null +++ b/logo.svg @@ -0,0 +1,144 @@ + + + + + + + + 𓆚 + 𓆚 + 𓆚 + 𓆚 + 𓆚 + 𓆚 + 𓆚 + 𓆚 + 𓆚 + +