-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
200 changed files
with
28,632 additions
and
14,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** @type {import("prettier").Config} */ | ||
export default { | ||
printWidth: 210, | ||
tabWidth: 4, | ||
plugins: ["prettier-plugin-astro"], | ||
overrides: [ | ||
{ | ||
files: "*.astro", | ||
options: { | ||
parser: "astro", | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"recommendations": ["astro-build.astro-vscode", "lokalise.i18n-ally"], | ||
"unwantedRecommendations": [] | ||
"recommendations": ["astro-build.astro-vscode", "lokalise.i18n-ally"], | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
{ | ||
"i18n-ally.localesPaths": [ | ||
"src/i18n/locales" | ||
], | ||
"i18n-ally.localesPaths": ["src/i18n/locales"], | ||
"i18n-ally.namespace": true, | ||
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json", | ||
"i18n-ally.pathMatcher": "{locale}/{namespaces}.yaml", | ||
"i18n-ally.enabledFrameworks": ["i18next", "custom"], | ||
"i18n-ally.keystyle": "nested", | ||
"i18n-ally.annotationDelimiter": "." | ||
} | ||
"i18n-ally.keystyle": "flat", | ||
"i18n-ally.annotationDelimiter": ":", | ||
"i18n-ally.annotationInPlace": false, | ||
"i18n-ally.dirStructure": "dir", | ||
"i18n-ally.displayLanguage": "en", | ||
"i18n-ally.extract.keygenStyle": "snake_case", | ||
"i18n-ally.indent": 4, | ||
"i18n-ally.review.enabled": false, | ||
"i18n-ally.review.gutters": false, | ||
"i18n-ally.sortCompare": "locale", | ||
"i18n-ally.sortKeys": true, | ||
"i18n-ally.sortLocale": "en" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,49 @@ | ||
# Welcome to my [Website!](https://daliborhon.com) | ||
This page was created as a fun project of mine, trying to learn something more about web development, and get better with my coding skills. In the beginning I decided to use ASP.NET Core Razor Pages (because I have experience with C#) with combination of Blazor components. Later on I found out that ASP.NET is a little bit overkill for such a simple website, so I switched to static site generator called Astro. Of cource plain JavaScript (later on TypeScript) and other standard tools and languages had to be used as well. When I initially started, I did not have much experience with web development, so this project tool longer than I expected. Anyways it was a great journey, and now I can say that I know a lot more than before. And what's better? I enjoyed it! | ||
# Welcome to my [Website!](https://daliborhon.dev) | ||
|
||
Initially I started with a template called Start Bootstrap (Licensed under MIT), because as I mentioned I did not have any previous experience on writing plain HTML and using CSS. Using Bootstrap seemed like a good decision. In the process I figured out that I wasn’t really learning on how to create a website, I was learning on how to use Bootstrap. That is why I decided to not use it anymore, and focus more on learning the "basics" first. | ||
<p align="center"> | ||
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/dallyh/daliborhon.dev/deploy.yaml"> | ||
<img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/dallyh/daliborhon.dev"> | ||
</p> | ||
|
||
## Info | ||
|
||
This is an [Astro](https://astro.build) project for my personal website, which I play to use as a blog. | ||
The project is continually in development, as I also take it as an opportunity to learn something new. | ||
|
||
This is a fully static website hosted on GitHub pages, using a fully static CMS for content management. | ||
|
||
I guess for experienced developers a lot of things in this repo will not make any sense, however, everybody has to start somewhere. | ||
|
||
## Stack | ||
|
||
- Frameworks: | ||
- [Astro](https://astro.build) | ||
- Some of the UI: [React](https://react.dev/) | ||
- Internationalization [i18next](https://www.i18next.com/) | ||
- Content Management System: [Static CMS](https://staticcms.org) | ||
- User authorization: [Static CMS GitHub OAuth provider](https://github.com/dallyh/static-cms-gh-oauth-provider) | ||
|
||
## Deployment | ||
|
||
Deployments are done either on a new commit to the `main` branch (production), or on a new pull request for `main` branch. | ||
|
||
Pull request creates a new build just for that particular pull request, which is used to preview the site. | ||
Previews are hosted [here](https://github.com/dallyh/deploy-previews). | ||
|
||
## Commands | ||
|
||
## 🧞 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 host` | Starts local dev server hosted at network | | ||
| `npm run build` | Build production site to `./dist/` | | ||
| `npm run preview` | Preview the build locally | | ||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro preview` | | ||
| `npm run astro --help` | Get help using the Astro CLI | | ||
| Command | Action | | ||
| :------------------------ | :--------------------------------------------------------------------- | | ||
| `npm install` | Installs dependencies | | ||
| `npm run dev` | Starts local dev server at `localhost:4321` | | ||
| `npm run dev-host` | Starts local dev server hosted at a network | | ||
| `npm run build` | Build production site to `./dist/` | | ||
| `npm run preview` | Preview the build locally | | ||
| `npm run preview-host` | Preview the build hosted at a network | | ||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro preview` | | ||
| `npm run sync` | Runs the `astro sync` command to generate content collection types | | ||
| `npm run prettier-check` | Runs the `prettier . --check` command to check for formatting problems | | ||
| `npm run prettier-format` | Runs the `prettier . --write` command to fix formatting problems | | ||
| `npm run astro --help` | Get help using the Astro CLI | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.