Skip to content

Commit

Permalink
Merge branch 'rishi-raj-jain/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Oct 14, 2024
2 parents d40e38a + dc3931c commit 5ca62a6
Show file tree
Hide file tree
Showing 314 changed files with 23,088 additions and 5,984 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install
- name: Generate static pages
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install
- name: Generate static pages
Expand Down
7 changes: 5 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ pnpm-debug.log*
# macOS-specific files
.DS_Store

public/**/*
src/content/**/*
**/*.md*
**/*.yml
public/
src/services/locale.ts
src/services/translations.ts
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"printWidth": 180,
"singleQuote": true,
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss", "prettier-plugin-organize-imports"]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"i18n-ally.keystyle": "nested",
"i18n-ally.localesPaths": "locales",
"i18n-ally.sortKeys": true
}
22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Capgo website

<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
[![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.com/invite/VnYRvBfgA6)
<a href="https://discord.com/invite/VnYRvBfgA6"><img src="https://img.shields.io/discord/912707985829163099?color=%237289DA&label=Discord" alt="Discord">
[![npm](https://img.shields.io/npm/dm/@capgo/website)](https://www.npmjs.com/package/@capgo/website)
Expand All @@ -18,7 +18,7 @@

<h2><a href="https://capgo.app/consulting/">Hire a Capacitor consultant</a></h2>

This is the source code for the Capgo website. It is built using [Astro](https://astro.build/), a new static site generator.
This is the source code for the Capgo website, built with [Astro](https://astro.build/).

## Development

Expand All @@ -37,20 +37,6 @@ The website is deployed to [Cloudflare Pages](https://pages.cloudflare.com/). Th

The source code is licensed under the GNU AFFERO GENERAL PUBLIC license. See the [LICENSE](LICENSE) file for details.

# Astro Starter Kit: Basics

```
npm create astro@latest -- --template basics
```

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg/)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics/)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg/)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics/)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg/)](https://codespaces.new/withastro/astro/?devcontainer_path=.devcontainer/basics/devcontainer.json)

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554/)

## 🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:
Expand Down Expand Up @@ -87,7 +73,3 @@ All commands are run from the root of the project, from a terminal:
| `bun run preview` | Preview your build locally, before deploying |
| `bun run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `bun 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/).
54 changes: 40 additions & 14 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
import starlight from '@astrojs/starlight'
import vue from '@astrojs/vue'
import UnoCSS from '@unocss/astro'
import AstroPWA from '@vite-pwa/astro'
import starlight from '@astrojs/starlight'
import { defineConfig } from 'astro/config'
import { pwa } from './src/config/pwa'
import config from './configs.json'
import { pwa } from './src/config/pwa'
import { defaultLocale, locales } from './src/services/locale'

export default defineConfig({
compressHTML: true,
site: `https://${config.base_domain.prod}`,
redirects: {
'/docs/getting-started/': {
status: 302,
destination: '/docs/plugin/cloud-mode/getting-started/',
},
},
i18n: {
locales,
defaultLocale,
fallback: locales
.filter((i) => i !== defaultLocale)
.reduce((r, h) => {
r[h] = defaultLocale
return r
}, {}),
routing: {
redirectToDefaultLocale: true,
},
},
integrations: [
UnoCSS({ injectReset: true }),
vue({
Expand All @@ -29,10 +42,13 @@ export default defineConfig({
title: 'Capgo',
favicon: '/favicon.svg',
logo: { src: './logo.svg' },
editLink: {
baseUrl: 'https://github.com/Cap-go/website/edit/main/',
},
customCss: ['./src/css/global.css'],
components: {
LanguageSelect: './src/components/LanguageSelect.astro',
},
editLink: {
baseUrl: 'https://github.com/Cap-go/website/edit/main/',
},
social: {
discord: 'https://discord.com/invite/VnYRvBfgA6',
github: 'https://github.com/Cap-go/',
Expand All @@ -54,7 +70,8 @@ export default defineConfig({
label: 'Plugin',
items: [
{ label: 'Overview', link: '/docs/plugin/overview' },
{ label: 'Cloud Mode',
{
label: 'Cloud Mode',
items: [
{ label: 'Getting Started', link: '/docs/plugin/cloud-mode/getting-started' },
{ label: 'Auto Update', link: '/docs/plugin/cloud-mode/auto-update' },
Expand All @@ -65,15 +82,16 @@ export default defineConfig({
collapsed: true,
},
{
label: 'Self Hosted', items: [
label: 'Self Hosted',
items: [
{ label: 'Getting Started', link: '/docs/plugin/self-hosted/getting-started' },
{ label: 'Contributing', link: '/docs/plugin/self-hosted/contributing' },
{ label: 'Auto Update', link: '/docs/plugin/self-hosted/auto-update' },
{ label: 'Manual Update', link: '/docs/plugin/self-hosted/manual-update' },
{ label: 'Encrypted Bundles', link: '/docs/plugin/self-hosted/encrypted-bundles' },
{ label: 'Handling Updates', link: '/docs/plugin/self-hosted/handling-updates' },
{ label: 'Handling Stats', link: '/docs/plugin/self-hosted/handling-stats' },
{ label: 'Local Development', autogenerate: { directory: 'docs/plugin/self-hosted/local-dev' }, collapsed: true}
{ label: 'Local Development', autogenerate: { directory: 'docs/plugin/self-hosted/local-dev' }, collapsed: true },
],
collapsed: true,
},
Expand All @@ -88,7 +106,7 @@ export default defineConfig({
collapsed: true,
autogenerate: { directory: 'docs/upgrade' },
},
]
],
},
{
label: 'CLI',
Expand All @@ -100,14 +118,12 @@ export default defineConfig({
collapsed: true,
autogenerate: { directory: 'docs/cli/migrations' },
},
]
],
},
{
label: 'Public API',
collapsed: true,
items: [
{ label: 'Endpoints', link: '/docs/public-api/endpoints' },
]
items: [{ label: 'Endpoints', link: '/docs/public-api/endpoints' }],
},
{
label: 'Web app',
Expand All @@ -134,4 +150,14 @@ export default defineConfig({
],
}),
],
server: {
port: 3000,
open: true,
host: '0.0.0.0',
},
preview: {
port: 3000,
open: true,
host: '0.0.0.0',
},
})
Binary file modified bun.lockb
Binary file not shown.
Loading

0 comments on commit 5ca62a6

Please sign in to comment.