MCPcopy Index your code
hub / github.com/bonaysoft/notion-md-gen

github.com/bonaysoft/notion-md-gen @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
41 symbols 110 edges 9 files 5 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

notion-md-gen

notion-md-gen allows you to use Notion as a CMS for pages built with any static site generators. You can use it as a cli or even automate your blog repo to update itself with the Github Action.

Requisites

  • Notion database for your articles.
  • Notion API secret token.
  • A blog by any static site generators.

Setup

install.sh

curl -sSf https://raw.githubusercontent.com/bonaysoft/notion-md-gen/master/install.sh | sh

webi (not ready)

curl https://webinstall.dev/notion-md-gen | bash

brew (not ready)

brew install notion-md-gen

Usage

CLI

cd your-blog-dir
notion-md-gen init
notion-md-gen

Github Action

The installation command tool is helpful for local debugging. If you do not want to debug locally, you can also copy the configuration file to your project and run it directly through GitHubAction. You can see the example config in example/notion-md-gen.yaml.

To use it as a Github Action, you can follow the example of the repository in .github/worflows/notion.yml.

Contributing

See CONTRIBUTING for details on submitting patches and the contribution workflow.

Special thanks

I based this code on https://github.com/xzebra/notion-blog

License

notion-md-gen is under the MIT license. See the LICENSE file for details.

Core symbols most depended-on inside this repo

New
called by 2
pkg/tomarkdown/tomarkdown.go
EnableExtendedSyntax
called by 2
pkg/tomarkdown/tomarkdown.go
GenerateTo
called by 2
pkg/tomarkdown/tomarkdown.go
GenContentBlocks
called by 2
pkg/tomarkdown/tomarkdown.go
downloadImage
called by 2
pkg/tomarkdown/tomarkdown.go
ConvertRichText
called by 2
pkg/tomarkdown/tomarkdown.go
emphFormat
called by 2
pkg/tomarkdown/tomarkdown.go
filterFromConfig
called by 1
generator/notion.go

Shape

Function 23
Method 13
Struct 5

Languages

Go100%

Modules by API surface

pkg/tomarkdown/tomarkdown.go20 symbols
generator/notion.go5 symbols
generator/config.go4 symbols
pkg/tomarkdown/tomarkdown_test.go3 symbols
generator/generator.go3 symbols
cmd/root.go3 symbols
main.go1 symbols
cmd/version.go1 symbols
cmd/init.go1 symbols

For agents

$ claude mcp add notion-md-gen \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page