A minimalist tool for generating static web pages from obsidian notes. Although there are many powerful third-party tools with the same functions, but because I don't want to use my brain to think and configure, I just want to simply share my notes with my friends (and I don't want to spend money to buy official services——), so this tool was born !
All it takes is: one executable + one css style = one website!
Unzip(or build) and place it in anywhere you like, make sure the theme directory and the executable file are at the same level.
Run like:
fluorite.exe -i MY_OBSIDIAN_NOTE_FOLDER -o TARGET_OUTPUT_FOLDER -t THEME_NAME
or create yaml config like:
root: C:\library\docs\notes
theme: default
output: D:\Source\mynotes
include:
- folder1
- folder2
- folder3
then run:
fluorite.exe -c THE_PATH_TO_YAML_CONFIG
finally you get a folder like:
- root level
- main.css
- index.html
- notes
- xxxxx.html
- xxxxxxx.html
- yyyyy.png
- yyyy.jpg
- ... ... ... ...
The directory of your obsidian notes folder, which is also the parent directory of the .obsidian folder.
The theme css. look at theme/default
The theme folder should be at the same level as the executable.
The output Directory. This folder will be emptied every time it is generated, do not modify it manually.
Only the defined folder prefix will be public. Note that if the attachment folder is not public, your pictures will not be displayed. If not defined, all folders are exposed.
go build
Now support custom theme. Look at theme/default
.
So how to create a new theme?
- Create a new folder under
theme
folder. Folder name is your theme name. - Create a
config.yaml
undertheme/your_theme
. - Complete your
config.yaml
! (just likedefault/config.yaml
)
- share button: Add a button to copy the URL and title of this page on each page.
- default css style: Now hardly any css styles are defined.
- Support for display in more formats.
- a beautiful index page.