Skip to content

Commit

Permalink
v2.0.0 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
illyrius666 authored Sep 28, 2024
1 parent 15dbc92 commit eb49ef5
Show file tree
Hide file tree
Showing 47 changed files with 2,170 additions and 6,842 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "mcr.microsoft.com/vscode/devcontainers/typescript-node",
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu",
"remoteUser": "root",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
Expand All @@ -12,6 +12,8 @@
"customizations": {
"vscode": {
"extensions": [
"bradlc.vscode-tailwindcss",
"denoland.vscode-deno",
"esbenp.prettier-vscode",
"github.copilot",
"github.vscode-github-actions",
Expand All @@ -22,5 +24,6 @@
]
}
},
"postCreateCommand": "curl -fsSL https://deno.land/install.sh | sh",
"shutdownAction": "stopContainer"
}
3 changes: 0 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@ Please include a summary of the changes and the related issue. Explain the motiv
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
6 changes: 1 addition & 5 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
run: npm run build
shell: bash

- id: remove_sass_ts
name: Remove SASS & TS Folder
run: rm -rf src/assets/scss/ src/assets/ts/

- id: setup_pages
name: Setup Pages
uses: actions/configure-pages@main
Expand All @@ -47,7 +43,7 @@ jobs:
name: Upload artifact
uses: actions/upload-pages-artifact@main
with:
path: "./src"
path: "./_site"

- id: deploy_to_github_pages
name: Deploy to GitHub Pages
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
css/
js/
_site
_cache
node_modules/*
26 changes: 3 additions & 23 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
{
// Editor Settings
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
// General Settings
"extensions.ignoreRecommendations": true,
// Explorer Settings
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
// Git Settings
"git.autofetch": true,
"git.enableSmartCommit": true,
"github.copilot.enable": {
"*": true
"[svg]": {
"editor.defaultFormatter": "jock.svg"
},
// JSON Schema Settings
"json.schemas": [
{
"fileMatch": ["*.json", "*.jsonc"],
"url": "https://json.schemastore.org/package"
}
],
// Material Icon Theme Settings
"material-icon-theme.files.color": "#ef5350",
"material-icon-theme.folders.color": "#ef5350",
// Terminal Settings
"terminal.integrated.enableMultiLinePasteWarning": "never",
// Workbench Settings
"workbench.colorTheme": "Monokai Dimmed",
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "none",
"git.ignoreLimitWarning": true
"deno.enable": true
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Lume",
"type": "shell",
"command": "deno task build",
"group": "build",
"problemMatcher": []
},
{
"label": "Serve Lume",
"type": "shell",
"command": "deno task serve",
"group": "build",
"isBackground": true,
"problemMatcher": []
}
]
}
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Lume Static Website

Welcome to the Lume Static Website project! This repository contains the source code for a static website built using [Lume](https://lumeland.github.io/), a static site generator for [Deno](https://deno.land/).

## Getting Started

### Prerequisites

Ensure you have Deno installed. You can install Deno by following the instructions on the [official website](https://deno.land/#installation).

### Installation

1. Clone the repository:

```sh
git clone https://github.com/XodiumSoftware/XodiumSoftware.github.io.git
cd XodiumSoftware.github.io
```

2. Install Lume:
```sh
deno install -A -f --unstable https://deno.land/x/lume/cli.ts
```

### Running the Development Server

To start the development server, run:

```sh
lume --serve
```

This will start a local server at `http://localhost:3000` where you can view your site.

### Building the Site

To build the static site, run:

```sh
lume
```

The output will be generated in the `_site` directory.

## Project Structure

- `/_data`: Contains data files used in the site.
- `/pages`: Contains the content pages of the site.
- `/layouts`: Contains layout templates.
- `/assets`: Contains static assets like images, CSS, and JavaScript files.

## Acknowledgements

- [Lume](https://lumeland.github.io/)
- [Deno](https://deno.land/)

Thank you for using Lume and Deno!
24 changes: 24 additions & 0 deletions _config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import lume from "lume/mod.ts";
import lightningCss from "lume/plugins/lightningcss.ts";
import minifyHTML from "lume/plugins/minify_html.ts";
import sitemap from "lume/plugins/sitemap.ts";
import robots from "lume/plugins/robots.ts";
import svgo from "lume/plugins/svgo.ts";
import esbuild from "lume/plugins/esbuild.ts";
import sourceMaps from "lume/plugins/source_maps.ts";

const site = lume({ src: "src", location: new URL("https://xodium.org/") });

site.ignore("README.md", "LICENSE.md", "CODE_OF_CONDUCT.md");
site.copyRemainingFiles((path: string) =>
path.startsWith("") ? path.toLowerCase() : false
);
site.use(lightningCss());
site.use(minifyHTML());
site.use(sitemap());
site.use(robots());
site.use(svgo());
site.use(esbuild());
site.use(sourceMaps());

export default site;
14 changes: 14 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"imports": {
"lume/": "https://deno.land/x/lume@v2.3.2/",
"tailwindcss": "https://deno.land/x/tailwindcss@3.4.13/"
},
"tasks": {
"lume": "echo \"import 'lume/cli.ts'\" | deno run -A -",
"build": "deno task lume",
"serve": "deno task lume -s"
},
"compilerOptions": {
"types": ["lume/types.ts"]
}
}
Loading

0 comments on commit eb49ef5

Please sign in to comment.