diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..79ce855 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,83 @@ +name: Deploy React site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/bun.lockb" ]; then + echo "manager=bun" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + echo "runner=bun" >> $GITHUB_OUTPUT + exit 0 + elif [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then + echo "manager=pnpm" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + echo "runner=pnpm" >> $GITHUB_OUTPUT + exit 0 + elif [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + echo "runner=yarn" >> $GITHUB_OUTPUT + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT + echo "runner=npx --no-install" >> $GITHUB_OUTPUT + exit 0 + else + echo "Unable to determine package manager" + exit 1 + fi + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Build + run: ${{ steps.detect-package-manager.outputs.runner }} run docs:build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./docs/.vitepress/dist + + # Deployment job + 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@v4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b846814 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +node_modules +.temp +.cache +cache +._* +.obsidian +.vscode +.idea +dist +/**/code +/**/resource +pnpm-global +.DS_Store \ No newline at end of file diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..4dd5445 Binary files /dev/null and b/bun.lockb differ diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts new file mode 100644 index 0000000..ecd4837 --- /dev/null +++ b/docs/.vitepress/config.mts @@ -0,0 +1,40 @@ +import { defineConfig } from "vitepress"; + +// https://vitepress.dev/reference/site-config +export default defineConfig({ + title: "Endurance Hub", + description: "Home is where the heart is.", + ignoreDeadLinks: "localhostLinks", + sitemap: { + hostname: "https://endurancehub.org", + lastmodDateOnly: false, + }, + + themeConfig: { + outline: { + level: [2, 3], + }, + // search: { + // provider: "local", + // }, + editLink: { + pattern: + "https://github.com/OpenFusionist/endurancehub.org/edit/master/docs/:path", + text: "Edit this page on GitHub", + }, + lastUpdated: { + text: "Updated at", + formatOptions: { + dateStyle: "medium", + timeStyle: "medium", + }, + }, + + socialLinks: [ + { + icon: "github", + link: "https://github.com/OpenFusionist/endurancehub.org", + }, + ], + }, +}); diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..3106998 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,20 @@ +
+

Awesome Endurance

+

A curated list of awesome Endurance resources, libraries, tools and more.

+ +
+ +## Resources + +### Official + +- [Safe wallet](https://safewallet.fusionist.io/) - Official Safewallet on Endurance. +- [Tesseract](https://www.tesseract.world/swap) - Endurance DEX. +- [PeACE Launchpad](https://launchpad.fusionist.io/) - Pledge ACE in Launchpad to get $PeACE and ACE Avatar. +- [Solo Staker Make Endurance Great](https://discord-solostaker.fusionist.io/) - Eundurance Official Solo Staker incentive. +- [Did The Team Do Something Today](https://didtheteamdosomething.today) - Github ommit history of Fusionist team members. +- [Are we the minority yet?](https://arewetheminorityyet.com/) - The share of our validators across the network. +- [Are we fast yet?](https://arewefastyet.report/) - ETH Clients Benchmark Report. +- [Endurance explorer](https://explorer-endurance.fusionist.io/) - 👈 As titled. +- [Endurance Beacon Chain Explorer](https://beacon.fusionist.io/) - 👈 As titled. +- [Staking ACE](https://staking.fusionist.io/en/) - 👈 Become a validator and help secure the future of Endurance. diff --git a/package.json b/package.json new file mode 100644 index 0000000..e24fad3 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "dependencies": {}, + "devDependencies": { + "vitepress": "^1.1.4" + }, + "scripts": { + "docs:dev": "vitepress dev docs", + "docs:build": "vitepress build docs", + "docs:preview": "vitepress preview docs" + } +} \ No newline at end of file