-
-
Notifications
You must be signed in to change notification settings - Fork 20
feat: website #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: website #69
Changes from 8 commits
dd714d6
91f78ae
1cc30ff
2235359
ca51b44
1c33682
fc343d4
071eda5
9074c54
f6840a9
293fd5d
d146162
319fa99
028a917
0e81651
91a43cc
719dd39
044ad9d
45748e3
4097af9
365366f
c454e1c
eb4821a
ffa8404
3dba46e
edd49d0
9db1b31
d1ff491
73e70e1
e1dae1c
c8cc995
9fb51db
1385866
d923104
9832b84
001f522
8107934
2f02f2e
1d5fe13
e57e569
7d559a1
bd1eff9
36dc8aa
8d6564f
b83eed1
88635f8
2efa5b9
ffd9d5e
9546c3f
ef79802
6c9e6a2
adde105
1fa1670
94ae165
95d6e80
79cc08f
0cd9b18
03a8b0d
39bf25a
7db244b
6829deb
203762f
f3c8194
da1806b
5cca9d6
add9123
69a0141
679cd6b
6d3218d
87acb15
05426f1
7d1f7bc
62a54a8
753cfe1
cd5743b
91ed888
bb96a32
5eb1a0d
0c8f8f0
d4c142f
6cb68df
8d6a77e
05f311d
50bb439
f37d4ff
f60aae3
83d7925
6de422a
6be6898
4b06743
ee92045
3614658
9ba85b2
94dd934
fd1370b
1f11efe
0b8092a
4baad63
de68e15
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Deploy to GitHub Pages | ||
|
|
||
| on: | ||
| # Trigger the workflow every time you push to the `main` branch | ||
| # Using a different branch name? Replace `main` with your branch’s name | ||
| push: | ||
| branches: [feat/website] | ||
| # Allows you to run this workflow manually from the Actions tab on GitHub. | ||
| workflow_dispatch: | ||
|
|
||
| # Allow this job to clone the repo and create a page deployment | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout your repository using git | ||
| uses: actions/checkout@v3 | ||
| - name: Install, build, and upload your site | ||
| uses: withastro/action@v0 | ||
| # with: | ||
| # path: . # The root location of your Astro project inside the repository. (optional) | ||
| # node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional) | ||
| # package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) | ||
|
|
||
| deploy: | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove this file. |
||
| "0 debug pnpm:scope": { | ||
| "selected": 1 | ||
| }, | ||
| "1 info pnpm": { | ||
| "err": { | ||
| "name": "Error", | ||
| "message": "not found: dev", | ||
| "code": "ENOENT", | ||
| "stack": "Error: not found: dev\n at getNotFoundError (C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:41759:51)\n at Function.whichSync [as sync] (C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:41836:13)\n at getCommandAbsolutePathSync (C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:43401:44)\n at default_1 (C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:43410:32)\n at C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:178873:39" | ||
| } | ||
| }, | ||
| "2 error pnpm": { | ||
| "code": "ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL", | ||
| "prefix": "C:\\Users\\AZARAKHSH\\Desktop\\proxy-memoize", | ||
| "err": { | ||
| "name": "pnpm", | ||
| "message": "not found: dev", | ||
| "code": "ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL", | ||
| "stack": "Error: not found: dev\n at getNotFoundError (C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:41759:51)\n at Function.whichSync [as sync] (C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:41836:13)\n at getCommandAbsolutePathSync (C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:43401:44)\n at default_1 (C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:43410:32)\n at C:\\Users\\AZARAKHSH\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\pnpm.cjs:178873:39" | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # build output | ||
| dist/ | ||
| # generated types | ||
| .astro/ | ||
|
|
||
| # dependencies | ||
| node_modules/ | ||
|
|
||
| # logs | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
|
|
||
|
|
||
| # environment variables | ||
| .env | ||
| .env.production | ||
|
|
||
| # macOS-specific files | ||
| .DS_Store |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "recommendations": ["astro-build.astro-vscode"], | ||
| "unwantedRecommendations": [] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "command": "./node_modules/.bin/astro dev", | ||
| "name": "Development server", | ||
| "request": "launch", | ||
| "type": "node-terminal" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Astro Starter Kit: Minimal | ||
|
|
||
| ``` | ||
| npm create astro@latest -- --template minimal | ||
| ``` | ||
|
|
||
| [](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal) | ||
| [](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal) | ||
| [](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json) | ||
|
|
||
| > 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! | ||
|
|
||
| ## 🚀 Project Structure | ||
|
|
||
| Inside of your Astro project, you'll see the following folders and files: | ||
|
|
||
| ``` | ||
| / | ||
| ├── public/ | ||
| ├── src/ | ||
| │ └── pages/ | ||
| │ └── index.astro | ||
| └── package.json | ||
| ``` | ||
|
|
||
| Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. | ||
|
|
||
| There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. | ||
|
|
||
| Any static assets, like images, can be placed in the `public/` directory. | ||
|
|
||
| ## 🧞 Commands | ||
|
|
||
| All commands are run from the root of the project, from a terminal: | ||
|
|
||
| | Command | Action | | ||
| | :------------------------ | :----------------------------------------------- | | ||
| | `npm install` | Installs dependencies | | ||
| | `npm run dev` | Starts local dev server at `localhost:3000` | | ||
| | `npm run build` | Build your production site to `./dist/` | | ||
| | `npm run preview` | Preview your build locally, before deploying | | ||
| | `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | | ||
| | `npm run astro -- --help` | Get help using the Astro CLI | | ||
|
|
||
| ## 👀 Want to learn more? | ||
|
|
||
| Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import { defineConfig } from 'astro/config'; | ||
| import UnoCSS from 'unocss/astro'; | ||
|
|
||
| // https://astro.build/config | ||
| export default defineConfig({ | ||
| // setup for github pages | ||
| site: 'https://pheno-agency.github.io', | ||
| base: '/proxy-memoize', | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Sajad-Sharhani I think the base should be /website, it's the directory that the site lives in. And please add the github workflow that astro recommends. |
||
| integrations: [ | ||
| UnoCSS({ | ||
| injectReset: true, // or a path to the reset file | ||
| }), | ||
| ], | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "name": "website", | ||
| "type": "module", | ||
| "version": "0.0.1", | ||
|
Aslemammad marked this conversation as resolved.
|
||
| "scripts": { | ||
| "dev": "astro dev", | ||
| "start": "astro dev", | ||
| "build": "astro build", | ||
| "preview": "astro preview", | ||
| "astro": "astro" | ||
| }, | ||
| "dependencies": { | ||
| "astro": "^2.3.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@unocss/reset": "^0.51.8", | ||
| "unocss": "^0.51.8" | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work now in this branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but since it's a fork, it pushes in our repo, when merged, it should be changed to main. You can see the link here for instance https://pheno-agency.github.io/proxy-memoize/
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, okay, let's change it to
mainin this PR and we will see.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, cc @Sajad-Sharhani