Skip to content

Commit

Permalink
Change local site infrastructure (#132)
Browse files Browse the repository at this point in the history
ildyria authored Aug 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 630db63 commit 7d9bf10
Showing 232 changed files with 18,990 additions and 1,543 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = false
7 changes: 6 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -13,6 +13,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup npm
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Setup Python
uses: actions/setup-python@v2
with:
@@ -34,5 +39,5 @@ jobs:
with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.
folder: dist # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
# build output
dist/
.output/
__pycache__/
build/*
.vscode/
.idea/

# 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

pnpm-lock.yaml

.astro
*.old
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Expose Astro dependencies for `pnpm` users
shamefully-hoist=true
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist
node_modules
.github
.changeset
docs/*
13 changes: 13 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type {import('prettier').Config} */
module.exports = {
printWidth: 120,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,

plugins: [require.resolve('prettier-plugin-astro')],

overrides: [{ files: '*.astro', options: { parser: 'astro' } }],
};
6 changes: 6 additions & 0 deletions .stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"startCommand": "npm start",
"env": {
"ENABLE_CJS_IMPORTS": true
}
}
24 changes: 24 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
MIT License

Copyright (c) 2018-2024 LycheeOrg
Copyright (c) 2023 onWidget (for astro parts)

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.


7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -5,21 +5,24 @@
## Dependencies

- GNU Make
- npm
- Python 3 (because I don't like Python 2.7)
- git

## Setup

- [Install Python 3.x](https://www.python.org/downloads/)
- [Install pip](https://pip.pypa.io/en/stable/installing/)
- [Install npm](https://nodejs.org/en/download/package-manager)
- Install dependencies:

```sh
npm install
pip install -r requirements.txt
```

# Generating

Run `make` to generate the HTML files, which can then be found in `build/`.
Run `make` to generate the HTML files, which can then be found in `dist/`.

[build-status-shield]: https://img.shields.io/github/actions/workflow/status/LycheeOrg/LycheeOrg.github.io/CI.yml?branch=master
[build-status-shield]: https://img.shields.io/github/actions/workflow/status/LycheeOrg/LycheeOrg.github.io/CI.yml?branch=master
Binary file removed assets/images/og.jpg
Binary file not shown.
46 changes: 0 additions & 46 deletions assets/scripts/main.js

This file was deleted.

Binary file removed assets/styles/fontawesome/fa-brands-400.woff2
Binary file not shown.
6 changes: 0 additions & 6 deletions assets/styles/fontawesome/fontawesome.css

This file was deleted.

Loading

0 comments on commit 7d9bf10

Please sign in to comment.