prema-0.1.0 is not a library.
very simple blog generator!
prema 는 pretty markdown의 줄임말입니다.
tailwindcss와 flowbite를 기반으로 하고 있습니다.
명령어
# generate html
# make hierarchy htmls based on selected directory
# make md files to html files in html_directory
# generate set of md
# make {name}.md, option.toml
# setting tags
MD Directory 구조
- {filename}.md (required)
- option.toml (optional)
- nav
- theme
- footer
- [image files]
- [other md directories]
구조는 위와 같이 계층형으로 되어 있으며 하위 디렉토리에 option이 없을 경우 상위 디렉토리를 참조하게 됩니다.
theme의 경우 설정되어있지 않으면 상위theme를 따라가며 상위도 없다면 기본적으로 dark md 파일은 한 directory에 반드시 1개만 있어야 하며 파일명은 상관 없음 image파일은 jpg, jpeg, png만 지원
페이지를 링크하는 법
[Link](rust "")
원리
디렉토리 하나를 하나의 페이지로 보고 있습니다. 디렉토리 하나에 하나의 md파일이 반드시 존재해야 하며 이미지가 있을 경우 이미지 파일들이 해당 md파일과 같이 있으면 좋습니다.
md 파일
디렉토리에 한개만 있으면 됩니다. 없거나 2개 이상일경우 없는 디렉토리로 간주합니다.
태그하는 법
지원 예정
작성시간 넣기
지원 예정
마크다운 문서파일들 변경하기
마크다운 파일들이 있는 루트 폴더를 지정하고 html이 들어갈 루트 폴더를 지정하면 된다.
prema html {root_path} {html_path}
메인 아이콘(홈으로 갈 수 있는..)
아직 미지원
내비
option.toml에 아래와 같이 적으면 되고 2depth까지만 지원합니다.
[]
= "/"
= "etc1"
= "etc2"
= "etc3"
= "menu"
= "end"
테마
현재 다크모드를 설정할 수 있습니다.
[]
= true
푸터
하단에 들어갈 문장을 작성할 수 있습니다. sns는 현재 5개 지원합니다.
[]
= "© 2025 Prema. All Rights Reserved"
= ""
= ""
= ""
= ""
= ""
On this page
Dropdown example
Dropdown hover
Delay duration
Dropdown divider
Dropdown header
Multi-level dropdown
Dropdown with checkbox
Background hover
Helper text
Dropdown with radio
Background hover
Helper text
Dropdown with toggle switch
Dropdown with scrolling
Dropdown with search
Menu icon
Notification bell
User avatar
Avatar with name
Dropdown navbar
Dropdown datepicker
Sizes
Placement
Double placement
Dropdown offset
Distance
Skidding
More examples
JavaScript behaviour
Object parameters
Options
Methods
Example
HTML Markup
TypeScript
Learn Design Concepts
Make better Flowbite pages by learning the fundamentals of design
Teach Me Design
by Adrian Twarog
```