Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
shelchin2023 committed Aug 5, 2024
0 parents commit 7f931c9
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules
.temp
.cache
cache
._*
.obsidian
.vscode
.idea
dist
/**/code
/**/resource
pnpm-global
.DS_Store
Binary file added bun.lockb
Binary file not shown.
40 changes: 40 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -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",
},
],
},
});
20 changes: 20 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<div align="center">
<h1 align="center">Awesome Endurance</h1>
<p align="center">A curated list of awesome <a href="https://ace.fusionist.io/">Endurance</a> resources, libraries, tools and more.</p>

</div>

## 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.
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 7f931c9

Please sign in to comment.