Skip to content

Commit

Permalink
Merge pull request #1 from HiDeoo/hd-boostrap
Browse files Browse the repository at this point in the history
Boostrap project
  • Loading branch information
HiDeoo committed Jun 16, 2024
2 parents 51955d2 + 208b39e commit f8436f9
Show file tree
Hide file tree
Showing 55 changed files with 9,735 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Integration

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}

jobs:
lint_test:
name: Lint & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 18

- name: Install dependencies
run: pnpm install

- name: Generates docs TypeScript types
run: pnpm astro sync
working-directory: docs

- name: Lint
run: pnpm lint
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

jobs:
integration:
name: Integration
uses: ./.github/workflows/integration.yml

publish:
name: Publish
needs:
- integration
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 18
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install

- name: Publish
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

- name: Generate changelog
uses: hideoo/changelogithub-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.astro
.DS_Store
.eslintcache
.idea
.next
.turbo
.vercel
.vscode/*
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/settings.json
!.vscode/tasks.json
.vscode-test
.vscode-test-web
*.local
*.log
*.pem
*.tsbuildinfo
build
coverage
dist
dist-ssr
lerna-debug.log*
logs
next-env.d.ts
node_modules
npm-debug.log*
out
pnpm-debug.log*
releases
test-results
yarn-debug.log*
yarn-error.log*
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpx lint-staged
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.astro
.github/blocks
.next
.vercel
.vscode-test
.vscode-test-web
build
coverage
dist
dist-ssr
out
pnpm-lock.yaml
25 changes: 25 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const baseConfig = require('@hideoo/prettier-config')

/**
* @type {import('prettier').Config}
*/
const prettierConfig = {
...baseConfig,
overrides: [
{
files: '*.astro',
options: {
parser: 'astro',
},
},
{
files: ['*.md', '*.mdx'],
options: {
printWidth: 80,
},
},
],
plugins: [require.resolve('prettier-plugin-astro')],
}

module.exports = prettierConfig
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"eslint.experimental.useFlatConfig": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue",
"markdown",
"astro"
]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024-present, HiDeoo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
12 changes: 12 additions & 0 deletions docs/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.astro
.github/blocks
.next
.vercel
.vscode-test
.vscode-test-web
build
coverage
dist
dist-ssr
out
pnpm-lock.yaml
28 changes: 28 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div align="center">
<h1>starlight-theme-rapide ⚡</h1>
<p>Starlight theme inspired by the Visual Studio Code Vitesse theme.</p>
</div>

<div align="center">
<a href="https://github.com/HiDeoo/starlight-theme-rapide/actions/workflows/integration.yml">
<img alt="Integration Status" src="https://github.com/HiDeoo/starlight-theme-rapide/actions/workflows/integration.yml/badge.svg" />
</a>
<a href="https://github.com/HiDeoo/starlight-theme-rapide/blob/main/LICENSE">
<img alt="License" src="https://badgen.net/github/license/HiDeoo/starlight-theme-rapide" />
</a>
<br />
</div>

## Documentation

Run the docs locally using [pnpm](https://pnpm.io):

```shell
pnpm run dev
```

## License

Licensed under the MIT License, Copyright © HiDeoo.

See [LICENSE](https://github.com/HiDeoo/starlight-theme-rapide/blob/main/LICENSE) for more information.
31 changes: 31 additions & 0 deletions docs/astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import starlight from '@astrojs/starlight'
import { defineConfig } from 'astro/config'
import starlightThemeRapide from 'starlight-theme-rapide'

export default defineConfig({
integrations: [
starlight({
credits: true,
customCss: ['./src/styles/custom.css'],
editLink: {
baseUrl: 'https://github.com/HiDeoo/starlight-theme-rapide/edit/main/docs/',
},
plugins: [starlightThemeRapide()],
sidebar: [
{
label: 'Start Here',
items: [{ label: 'Getting Started', link: '/getting-started/' }],
},
{
label: 'Examples',
autogenerate: { directory: 'examples' },
},
],
social: {
github: 'https://github.com/HiDeoo/starlight-theme-rapide',
},
title: 'Starlight Rapide',
}),
],
site: 'https://starlight-theme-rapide.vercel.app',
})
43 changes: 43 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "starlight-theme-rapide-docs",
"version": "0.0.1",
"license": "MIT",
"description": "Starlight theme inspired by the Visual Studio Code Vitesse theme.",
"author": "HiDeoo <github@hideoo.dev> (https://hideoo.dev)",
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"lint": "prettier -c --cache . && eslint . --cache --max-warnings=0"
},
"dependencies": {
"@astrojs/starlight": "^0.24.0",
"astro": "^4.10.1",
"sharp": "^0.33.4",
"starlight-package-managers": "^0.6.0",
"starlight-theme-rapide": "workspace:*"
},
"engines": {
"node": ">=18"
},
"packageManager": "pnpm@9.0.4",
"private": true,
"sideEffects": false,
"keywords": [
"starlight",
"theme",
"rapide",
"vitesse",
"plugin",
"documentation",
"astro"
],
"homepage": "https://github.com/HiDeoo/starlight-theme-rapide",
"repository": {
"type": "git",
"url": "https://github.com/HiDeoo/starlight-theme-rapide.git",
"directory": "docs"
},
"bugs": "https://github.com/HiDeoo/starlight-theme-rapide/issues"
}
1 change: 1 addition & 0 deletions docs/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/hero.webp
Binary file not shown.
6 changes: 6 additions & 0 deletions docs/src/content/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { docsSchema } from '@astrojs/starlight/schema'
import { defineCollection } from 'astro:content'

export const collections = {
docs: defineCollection({ schema: docsSchema() }),
}
Loading

0 comments on commit f8436f9

Please sign in to comment.