{"id":24563739,"url":"https://github.com/mildronize/blog-v8","last_synced_at":"2025-04-19T19:05:35.387Z","repository":{"id":266994967,"uuid":"894582372","full_name":"mildronize/blog-v8","owner":"mildronize","description":"My Site v8","archived":false,"fork":false,"pushed_at":"2025-01-21T14:56:53.000Z","size":10462,"stargazers_count":3,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T15:21:53.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://thadaw.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mildronize.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-26T15:58:03.000Z","updated_at":"2025-01-21T14:56:56.000Z","dependencies_parsed_at":"2024-12-22T18:22:06.768Z","dependency_job_id":"a93d146c-dc91-4698-8429-7b3cb0f9475e","html_url":"https://github.com/mildronize/blog-v8","commit_stats":null,"previous_names":["mildronize/blog-v8"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fblog-v8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fblog-v8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fblog-v8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fblog-v8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mildronize","download_url":"https://codeload.github.com/mildronize/blog-v8/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235260748,"owners_count":18961636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-23T10:15:34.653Z","updated_at":"2025-01-23T10:15:35.234Z","avatar_url":"https://github.com/mildronize.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thadaw Site (v8)\n\nA modern, fast, and feature-rich static site powered by Zola and deployed seamlessly on Azure Static Web Apps.\n\n## 🚀 Features\n- **Static Site Generator**: Built using [Zola](https://www.getzola.org/), a Rust-powered static site generator.\n- **Serene Theme**: Based on the elegant [Serene](https://github.com/isunjn/serene) theme.\n- **Automatic Post ID Generation**: Each post gets a unique ID, auto-generated when pushed to the main branch using the [Auto Add Post ID GitHub Action](.github/workflows/auto-add-id.yml).\n- **Azure Static Web Apps Deployment**:\n  - Automatic deployment to production when changes are pushed to the main branch using [Deploy to Azure Static Web App GitHub Action](.github/workflows/deploy.yml).\n  - Automatic preview deployments triggered by pull requests.\n- **Dynamic 404 Handling**: Automatically resolves URLs with a post ID to the correct post. For example, `/s/123` redirects to `/post/this-is-a-post`.\n- Enable Giscus comment, which is already provided by the theme.\n- Enable Anonymous Reaction, any user can react with Emoji ❤️ to the post without login, which is already provided by the theme.\n   - The backend is reimplemented in Azure Functions with TypeScript. Checkout [Reaction](https://github.com/mildronize/reaction) repo for more detail.\n\n## 🛠️ Local Development\n\nFollow these steps to set up the project for local development:\n\n```bash\n# Clone the repository\ngit clone git@github.com:mildronize/blog-v8.git\n\n# Initialize and update submodules\ngit submodule update --init --recursive\n\n# Start the development server\nmake dev\n```\n\n### How to Debug Frontend with Vite\n\n#### Frontend Centric\n\nStart the server with cors allowed, then you can debug the frontend with Vite\nThis will serve the search index file in the `/api` path\n\n```bash\nmake serve \n```\n\nRun the vite server\n\n```bash\ncd snippets \u0026\u0026 bun install \u0026\u0026 bun dev\n```\n\n#### Zola Theme Centric\n\nIf you want to debug the theme, you can run the Zola server with the following command\n\n```bash\nmake dev\n```\nand open another terminal and run the vite server\n\n```bash\ncd snippets \u0026\u0026 bun install \u0026\u0026 bun run build:watch\n```\n\n## 🔑 Generate Azure Credentials\n\nTo enable the [Deploy to Azure Static Web App GitHub Action](https://www.notion.so/wrmsoftware/.github/workflows/deploy.yml) for preview environments, you need to generate Azure credentials:\n\n1. Run the following command in your Azure CLI to create a service principal:\n    \n    ```bash\n    az ad sp create-for-rbac --name \"github-actions/deploy/thadaw-main-site-v8\" --role contributor --scopes /subscriptions/xxxxxx/resourceGroups/rg-open-sources/providers/Microsoft.Web/staticSites/thadaw-main-site-v8 --sdk-auth\n    ```\n    \n2. Copy the output JSON and add it as a GitHub secret in your repository settings with the name `AZURE_CREDENTIALS`.\n\n## 📄 License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmildronize%2Fblog-v8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmildronize%2Fblog-v8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmildronize%2Fblog-v8/lists"}