Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Markdown editor with Tabs, WorkSpaces and Blog

License

NotificationsYou must be signed in to change notification settings

aceberg/DiaryMD

Repository files navigation

DiaryMD


Main-DockerDocker Image Size (latest semver)

Markdown editor written inGo andSolidJS:

  • Fully configurable Themes
  • Tabs
  • WorkSpaces
  • Simple Blog
  • Full screen mode
  • Works with a given directory (could be agit repo). No DB needed

Screenshot

More screenshots

Expand

ScreenshotScreenshotScreenshot

Quick start (Docker)

Expand
docker run --name DiaryMD \    -e"TZ=$YOURTIMEZONE"\# your TZ here    -e"REPOPATH=/repo"\# path to diary dir    -v~/.dockerdata/DiaryMD:/data/DiaryMD\# config    -v~/.dockerdata/DiaryRepo:/repo\# diary    -p 8854:8854 \    -u$(id -u):$(id -g)\# run as current user, so created files will be owned by user, not root  aceberg/diarymd

Mounted volumes must have write permission for non-root user:

sudo chown $(id -u):$(id -g) ~/.dockerdata/DiaryMDsudo chown $(id -u):$(id -g) ~/.dockerdata/DiaryRepo

Install Binary

Expand

All binaries are available in thelatest release.

Auth

Expand

DiaryMD does not have built-in auth option. But you can use it with SSO tools like Authelia, or my simple auth appForAuth.
Here is an exampledocker-compose-auth.yml.

Config & WorkSpaces

Expand

App config and config forDefault workspace can be done through environment variables orconfig.yaml file. Also,Default workspace config and colors can be set throughGUI.

Other workspaces have their own paths and themes, which can be configured throughGUI (recommended) orworkspaces.yaml file.

⚠️Note
WhileDefault workspace stores open tabs in browser, other workspaces keep them inworkspaces.yaml file, so, if you want to access the same tabs from different devices, do not useDefault.

App config

VariableDescriptionDefault
TZSet your timezone for correct time
HOSTListen address0.0.0.0
PORTPort for web GUI8854

Default workspace config

VariableDescriptionDefault
REPOPATHPath to diary dir or repo
BLOGPATHPath to dir withblog.json file
PAGE_STEPItems per page in blog3
THEMEdark,gray,lake,night,sand orCUSTOMsand

IfTHEME=CUSTOM, colors can be set individually.

Colors

VariableDescriptionDefault
C_FONTFont color#313136
C_MENUMenu color#dfb377
C_EDITEditor back color#faeddc
C_BACKBackground color#f8e6cc
C_OUTLINEOutline color#616161

Options

Expand
KeyDescriptionDefault
-dPath to config dir/data/DiaryMD

Blog

Expand

Blog option is still under development and a bit experimental.
To enable blog in the workspace, setBLOGPATH to directory, whereblog.json file is stored.

Example ofblog.json file. Herepath is relative path inside the dir, specified inBLOGPATH. Fileblog.json must be at the root of the dir.

[{"date":"2024-11-03","name":"Auth for WatchYourLAN and other apps","path":"/IT/ForAuth.md","tags": ["my-apps"]},{"date":"2024-10-06","name":"WatchYourPorts","path":"/IT/WYP.md","tags": ["my-apps"]},{"date":"2024-10-02","name":"Replace HDD in RAID1","path":"/IT/Raid-replace.md","tags": ["linux","hardware"]}]

Thanks

Expand

[8]ページ先頭

©2009-2025 Movatter.jp