mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 13:16:22 +00:00
Replace Gatsby with Hugo
This commit is contained in:
parent
0d1b0745ba
commit
45a7b1dc03
24 changed files with 41 additions and 41667 deletions
127
.gitignore
vendored
127
.gitignore
vendored
|
@ -1,116 +1,21 @@
|
||||||
|
# Created by https://www.toptal.com/developers/gitignore/api/hugo
|
||||||
|
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo
|
||||||
|
|
||||||
# Created by https://www.toptal.com/developers/gitignore/api/node
|
### Hugo ###
|
||||||
# Edit at https://www.toptal.com/developers/gitignore?templates=node
|
# Generated files by hugo
|
||||||
|
/public/
|
||||||
|
/resources/_gen/
|
||||||
|
/assets/jsconfig.json
|
||||||
|
hugo_stats.json
|
||||||
|
|
||||||
### Node ###
|
# Executable may be added to repository
|
||||||
# Logs
|
hugo.exe
|
||||||
logs
|
hugo.darwin
|
||||||
*.log
|
hugo.linux
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
# Temporary lock file while building
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
/.hugo_build.lock
|
||||||
|
|
||||||
# Runtime data
|
# End of https://www.toptal.com/developers/gitignore/api/hugo
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
/resources
|
||||||
lib-cov
|
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
|
||||||
coverage
|
|
||||||
*.lcov
|
|
||||||
|
|
||||||
# nyc test coverage
|
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
|
||||||
bower_components
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
|
||||||
typings/
|
|
||||||
|
|
||||||
# TypeScript cache
|
|
||||||
*.tsbuildinfo
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Microbundle cache
|
|
||||||
.rpt2_cache/
|
|
||||||
.rts2_cache_cjs/
|
|
||||||
.rts2_cache_es/
|
|
||||||
.rts2_cache_umd/
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# dotenv environment variables file
|
|
||||||
.env
|
|
||||||
.env.test
|
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
|
||||||
.cache
|
|
||||||
|
|
||||||
# Next.js build output
|
|
||||||
.next
|
|
||||||
|
|
||||||
# Nuxt.js build / generate output
|
|
||||||
.nuxt
|
|
||||||
dist
|
|
||||||
|
|
||||||
# Gatsby files
|
|
||||||
.cache/
|
|
||||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
||||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
||||||
# public
|
|
||||||
|
|
||||||
# vuepress build output
|
|
||||||
.vuepress/dist
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless/
|
|
||||||
|
|
||||||
# FuseBox cache
|
|
||||||
.fusebox/
|
|
||||||
|
|
||||||
# DynamoDB Local files
|
|
||||||
.dynamodb/
|
|
||||||
|
|
||||||
# TernJS port file
|
|
||||||
.tern-port
|
|
||||||
|
|
||||||
# Stores VSCode versions used for testing VSCode extensions
|
|
||||||
.vscode-test
|
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/node
|
|
||||||
|
|
||||||
public/
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
build:
|
|
||||||
image: node:slim
|
|
||||||
stage: build
|
|
||||||
cache:
|
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
|
||||||
paths:
|
|
||||||
- .npm
|
|
||||||
- .cache
|
|
||||||
before_script:
|
|
||||||
- npm ci --cache .npm --prefer-offline
|
|
||||||
script:
|
|
||||||
- npm run build
|
|
||||||
- npm run prettier
|
|
||||||
artifacts:
|
|
||||||
name: "$CI_JOB_ID"
|
|
||||||
paths:
|
|
||||||
- ./public
|
|
||||||
expire_in: 30 mins
|
|
||||||
|
|
||||||
pages:
|
|
||||||
image: alpine:latest
|
|
||||||
stage: deploy
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
environment:
|
|
||||||
name: notes
|
|
||||||
url: https://notes.theorangeone.net
|
|
||||||
script:
|
|
||||||
- "true"
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public
|
|
|
@ -1 +0,0 @@
|
||||||
.gitignore
|
|
9
config.yml
Normal file
9
config.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
baseURL: https://notes.theorangeone.net
|
||||||
|
title: Notes
|
||||||
|
enableGitInfo: true
|
||||||
|
|
||||||
|
cleanDestinationDir: true
|
||||||
|
|
||||||
|
module:
|
||||||
|
imports:
|
||||||
|
- path: github.com/RealOrangeOne/hugo-theme-notes
|
|
@ -1,29 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
siteMetadata: {
|
|
||||||
title: "Notes",
|
|
||||||
description: "Notes and snippets and things",
|
|
||||||
author: "TheOrangeOne",
|
|
||||||
siteUrl: "https://notes.theorangeone.net",
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
{
|
|
||||||
resolve: "gatsby-theme-code-notes",
|
|
||||||
options: {
|
|
||||||
contentPath: "notes",
|
|
||||||
basePath: "/",
|
|
||||||
showThemeInfo: false,
|
|
||||||
showDescriptionInSidebar: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"gatsby-plugin-robots-txt",
|
|
||||||
"gatsby-plugin-sitemap",
|
|
||||||
"gatsby-plugin-sri",
|
|
||||||
{
|
|
||||||
resolve: "gatsby-plugin-plausible",
|
|
||||||
options: {
|
|
||||||
domain: "notes.theorangeone.net",
|
|
||||||
customDomain: "elbisualp.theorangeone.net",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
5
go.mod
Normal file
5
go.mod
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
module git.theorangeone.net/jake/notes
|
||||||
|
|
||||||
|
go 1.20
|
||||||
|
|
||||||
|
require github.com/RealOrangeOne/hugo-theme-notes v0.0.0-20230724125946-aaef005ab72e // indirect
|
2
go.sum
Normal file
2
go.sum
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
github.com/RealOrangeOne/hugo-theme-notes v0.0.0-20230724125946-aaef005ab72e h1:Bl4Ff7S7pPFkdX0pLA7YAbXDR1wqQVq7YxVA3PLIfws=
|
||||||
|
github.com/RealOrangeOne/hugo-theme-notes v0.0.0-20230724125946-aaef005ab72e/go.mod h1:ZMXpRbmG28r6mLfK/Nm93LgqjXCgUv+4ySLF3rkjSTo=
|
9
justfile
Normal file
9
justfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Recipes
|
||||||
|
@default:
|
||||||
|
just --list
|
||||||
|
|
||||||
|
start:
|
||||||
|
hugo server
|
||||||
|
|
||||||
|
build:
|
||||||
|
hugo
|
41461
package-lock.json
generated
41461
package-lock.json
generated
File diff suppressed because it is too large
Load diff
29
package.json
29
package.json
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
"name": "notes",
|
|
||||||
"description": "",
|
|
||||||
"private": true,
|
|
||||||
"version": "0.0.0",
|
|
||||||
"license": "MIT",
|
|
||||||
"scripts": {
|
|
||||||
"build": "gatsby clean && gatsby build",
|
|
||||||
"start": "gatsby develop",
|
|
||||||
"prettier": "prettier --write ."
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"gatsby": "3.15.0",
|
|
||||||
"gatsby-plugin-plausible": "0.0.7",
|
|
||||||
"gatsby-plugin-robots-txt": "1.7.1",
|
|
||||||
"gatsby-plugin-sitemap": "4.11.0",
|
|
||||||
"gatsby-plugin-sri": "1.1.0",
|
|
||||||
"gatsby-theme-code-notes": "2.3.0",
|
|
||||||
"react": "17.0.2",
|
|
||||||
"react-dom": "17.0.2"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/RealOrangeOne/notes"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"prettier": "2.8.4"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue