Skip to content

Commit beac53e

Browse files
committed
Initial commit
0 parents  commit beac53e

124 files changed

Lines changed: 5090 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: '0 0 * * *' # Daily at 00:00 UTC
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-22.04
13+
permissions:
14+
id-token: write
15+
contents: read
16+
17+
steps:
18+
- uses: actions/checkout@v5
19+
20+
- name: Install Hugo
21+
run: make install
22+
23+
- name: Configure AWS credentials
24+
uses: aws-actions/configure-aws-credentials@v4
25+
with:
26+
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
27+
aws-region: ${{ secrets.AWS_REGION }}
28+
29+
- name: Deploy
30+
env:
31+
CLOUDFRONT_ID: ${{ secrets.CLOUDFRONT_ID }}
32+
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
33+
run: ./scripts/deploy.sh

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/public
2+
/resources
3+
.hugo_build.lock

LICENSE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Copyright 2025 Dnote contributors
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
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.
8+

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.PHONY: install serve deploy
2+
3+
HUGO_VERSION=0.123.7
4+
5+
install:
6+
@command -v hugo >/dev/null 2>&1 || { \
7+
echo "Installing hugo $(HUGO_VERSION)..."; \
8+
curl -L https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_extended_$(HUGO_VERSION)_linux-amd64.tar.gz | tar -xz && \
9+
sudo mv hugo /usr/local/bin/hugo; \
10+
}
11+
12+
serve:
13+
hugo server -w
14+
15+
deploy:
16+
./scripts/deploy.sh

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Dnote Website
2+
3+
The website for Dnote. A static website generated with Hugo.
4+
5+
## Contributing
6+
7+
Install Hugo:
8+
```bash
9+
make install
10+
```
11+
12+
Run development server with live reload:
13+
```bash
14+
make serve
15+
```
16+
17+
The site will be available at `http://localhost:1313`
18+
19+
## License
20+
21+
MIT

config/_default/config.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
baseURL = "https://www.getdnote.com"
2+
title = "Dnote"
3+
theme = "basic"
4+
defaultContentLanguage = "en"
5+
enableRobotsTXT = true
6+
7+
disableKinds = ["taxonomy", "taxonomyTerm"]
8+
9+
[markup]
10+
[markup.highlight]
11+
anchorLineNos = false
12+
codeFences = true
13+
guessSyntax = true
14+
lineNos = false
15+
noClasses = false
16+
style = "github-dark"
17+
[markup.tableOfContents]
18+
endLevel = 3
19+
ordered = false
20+
startLevel = 2

config/_default/languages.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[en]
2+
contentDir = "content/en"
3+
languageName = "English"

config/_default/params.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
description = "A Simple and Encrypted Notebook"

content/en/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: A Simple Command Line Notebook
3+
description: Terminal-based notes with full-text search and a self-hosted server with APIs.
4+
---

content/en/credits/_index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Assets
3+
---
4+
5+
* <a target="_blank" href="https://icons8.com/icons/set/connection-sync">Sync icon</a> icon by <a target="_blank" href="https://icons8.com">Icons8</a>
6+
* <a target="_blank" href="https://icons8.com/icons/set/browser-window">Browse page icon</a> icon by <a target="_blank" href="https://icons8.com">Icons8</a>

0 commit comments

Comments
 (0)