Skip to content

Commit

Permalink
feat: add quartz setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig committed May 20, 2024
1 parent f483642 commit d610cc1
Show file tree
Hide file tree
Showing 275 changed files with 19,688 additions and 410 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
time: "13:00"
labels:
- dependencies
- cicd
commit-message:
prefix: "chore: "
42 changes: 42 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Automate Changelog
on:
workflow_dispatch:
push:
branches: [ main ]
paths-ignore:
- CHANGELOG.md
- .github/**
pull_request:
branches: [ main ]
types: [ opened, synchronize, closed ]
jobs:
changelog:
name: Generate Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Git Cliff
uses: tj-actions/[email protected]
id: git-cliff
with:
args: "--verbose"
output: "CHANGELOG.md"
template-config: https://raw.githubusercontent.com/noclocks/.github/main/workflow-templates/cliff.template.toml
- name: Print Changelog
id: print-changelog
run: |
cat "CHANGELOG.md"
# Commit and push the updated changelog, IF not a pull request
- name: Commit and Push Changelog
if: github.event_name != 'pull_request'
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
set +e
git add CHANGELOG.md
git commit -m "[chore]: update changelog"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git "main"
67 changes: 67 additions & 0 deletions .github/workflows/obs-vault-convert.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Convert Obsidian Vault

on:
push:
branches:
- develop
pull_request:
workflow_dispatch:

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

- name: Rename _READMEs
run: |
find . -name '*_README.md' -execdir mv -i {} README.md ";"
# find . -name "_README.md" -exec bash -c 'mv "$1" "${1/_README.md/README.md}"' -- {} \;
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Setup Cargo Cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
${{ runner.os }}-
${{ runner.os }}
- name: Install obsidian-export
run: |
cargo install --locked obsidian-export || true
- name: Run obsidian-export
run: |
mkdir tmp
obsidian-export . tmp --frontmatter never
cp tmp/* . -f -r
rm -r tmp
- name: Commit and Push Changelog
if: github.event_name != 'pull_request'
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
set +e
git add CHANGELOG.md
git commit -m "[chore]: update changelog"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git "main"
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "quartz"]
path = quartz
url = https://github.com/jackyzha0/quartz.git
6 changes: 6 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
05-SYSTEM/**

# Directories on developer machines
venv
.venv
node_modules/
14 changes: 14 additions & 0 deletions .markdownlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"no-hard-tabs": false,
"no-missing-space-atx": false,
"line-length": false,
"first-line-heading": false,
"no-inline-html": false,
"blanks-around-lists": false,
"no-multiple-blanks": 1,
"no-space-in-code": false,
"no-emphasis-as-heading": false,
"single-h1": false,
"ul-indent": false,
"no-bare-urls": false
}
22 changes: 21 additions & 1 deletion .obsidian/app.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
{
"promptDelete": false,
"livePreview": false,
"alwaysUpdateLinks": true
"alwaysUpdateLinks": true,
"spellcheck": true,
"showFrontmatter": false,
"foldIndent": true,
"newFileLocation": "folder",
"newFileFolderPath": "00-INBOX",
"vimMode": false,
"showLineNumber": false,
"showWordCount": true,
"userIgnoreFilters": [
"node_modules",
".git",
".vscode",
".github",
".cache",
"temp",
"tmp",
"05-SYSTEM/Templates",
"src"
],
"showInlineTitle": false
}
13 changes: 5 additions & 8 deletions .obsidian/appearance.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"accentColor": "",
"accentColor": "#66f55c",
"enabledCssSnippets": [
"supercharged-links-gen",
"embed",
"readme",
"tables",
"tool",
"hide-embed-header"
"callouts"
],
"cssTheme": "Dark Moss",
"interfaceFontFamily": "Inter"
"interfaceFontFamily": "Inter",
"baseFontSize": "16px",
"monospaceFontFamily": "CaskaydiaMono Nerd Font Mono"
}
3 changes: 2 additions & 1 deletion .obsidian/command-palette.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"pinned": [
"insert-template",
"automatic-table-of-contents:insert-automatic-table-of-contents-docs",
"graph:open-local",
"app:reload",
Expand All @@ -8,4 +9,4 @@
"workspace:edit-file-title",
"dataview:dataview-force-refresh-views"
]
}
}
11 changes: 9 additions & 2 deletions .obsidian/community-plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,12 @@
"mermaid-themes",
"obsidian-google-lookup",
"surfing",
"obsidian-plugin-update-tracker"
]
"obsidian-plugin-update-tracker",
"google-calendar",
"obsidian-linter",
"heatmap-calendar",
"auto-note-mover",
"note-refactor-obsidian",
"obsidian-icons-plugin",
"smart-random-note"
]
87 changes: 79 additions & 8 deletions .obsidian/graph.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,93 @@
{
"collapse-filter": true,
"collapse-filter": false,
"search": "",
"showTags": false,
"showTags": true,
"showAttachments": false,
"hideUnresolved": false,
"showOrphans": true,
"collapse-color-groups": true,
"colorGroups": [],
"collapse-display": true,
"collapse-color-groups": false,
"colorGroups": [
{
"query": "tag:#Type/MOC",
"color": {
"a": 1,
"rgb": 14048348
}
},
{
"query": "tag:#Type/Journal/Daily",
"color": {
"a": 1,
"rgb": 14069084
}
},
{
"query": "tag:#Type/Definition/Acronym",
"color": {
"a": 1,
"rgb": 11392604
}
},
{
"query": "tag:#Type/Meta",
"color": {
"a": 1,
"rgb": 12968645
}
},
{
"query": "tag:#Type/Checklist",
"color": {
"a": 1,
"rgb": 6084269
}
},
{
"query": "path:04-RESOURCES/Code",
"color": {
"a": 1,
"rgb": 6073814
}
},
{
"query": "file:_README",
"color": {
"a": 1,
"rgb": 6053078
}
},
{
"query": "path:04-RESOURCES/Tools ",
"color": {
"a": 1,
"rgb": 11361494
}
},
{
"query": "tag:#Type/Guide",
"color": {
"a": 1,
"rgb": 14048429
}
},
{
"query": "path:00-INBOX ",
"color": {
"a": 1,
"rgb": 14078556
}
}
],
"collapse-display": false,
"showArrow": false,
"textFadeMultiplier": 0,
"nodeSizeMultiplier": 1,
"lineSizeMultiplier": 1,
"collapse-forces": true,
"collapse-forces": false,
"centerStrength": 0.518713248970312,
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 0.09392927902846976,
"close": true
"scale": 0.09000389580539978,
"close": false
}
52 changes: 52 additions & 0 deletions .obsidian/hotkeys.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,56 @@
{
"app:delete-file": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "D"
}
],
"note-refactor-obsidian:app:extract-selection-first-line": [],
"random-note": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "R"
}
],
"app:go-back": [
{
"modifiers": [
"Mod"
],
"key": "ArrowLeft"
}
],
"app:go-forward": [
{
"modifiers": [
"Mod"
],
"key": "ArrowRight"
}
],
"obsidian-linter:lint-file": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "L"
}
],
"smart-random-note:open-random-note-from-search": [
{
"modifiers": [
"Mod"
],
"key": "Tab"
}
],
"automatic-table-of-contents:insert-automatic-table-of-contents": [
{
"modifiers": [
Expand Down
Loading

0 comments on commit d610cc1

Please sign in to comment.