Skip to main content

Static site generator plugins all the way down.

Project description


Markata

Markdown to site, plugins all the way down

Coming soon

pydantic all the things. All post objects and config will become pydantic objects. This will allow for validation to happen early, and referencing post attributes or config, it can be assumed that they exist whether they were explicitly created or cohersed to their defaults early in the build.


A static site generator that will give you a great site with many standard web features like rss, sitemaps, and seo tags, out of the box. Running markata build will get you a that only requires you to write Markdown. If you have additional features that you want, don't worry, since markata is built completely on plugins you can develop and install your own plugins to add the features you want.

QuickStart

Markata is fully configurable through a markata.toml file, but the defaults allow to build your site right out of the box with nothing more than Markdown.

Installation

markata is hosted on pypi and can be installed using pip.

python -m pip install markata

Create Some Content

Make some .md files in your current working directory. By default, markata will recursively look in all subdirectories for markdown files **/*.md.

mkdir pages
echo '# My First Post' > first-post.md
echo '# Hello World' > hello-world.md

Build your site

Install markata into your virtual environment and run markata build. It will create your site in ./markout, leave its cache in ./.markata.cache, and copy all assets from ./static into ./markout by default.

python -m pip install markata
markata build

# or if pipx is your thing
pipx run markata build

Building a Blog with Markata using a template

The markata cli includes a new command that will present you with questions to fill in the jinja variables in this repo.

markata new blog [directory]

# start the site and watch for changes
hatch run tui

Now if you open localhost:8000, you will be presented with an example site that will walk you through some features of markata. You can play with it at your own pace, or drop all the pages and start writing your own content.

Motivation

Markata is able to build your site purely from Markdown, allowing you to get started creating your own content quickly. Out of the box it will cover your seo tags, rss feeds, sitemap, and og images. Since it is built completely from plugins you can remove, modify, or add to any of its behavior.

  • configurable
  • plugins
  • seo
  • rss
  • sitemap
  • og-image

Using Markata

The docs are still a work in progress, but the base_cli walks through how to effectively use the markata build command. At this point Markata is far from stable and will change quite a bit, should you choose to use it on real site make sure you pin to the version that you want to build from. I will let you know as it becomes more stable and ready to use without diligence of pinning to the version you want.

Honestly A big motivation for me was wanting to learn and understand how to create a project that is completely plugin driven. This is highly a learning project for me, and it has grown into something I use every day.

Examples Gallary

Markata has a project gallery to show off sites built with markata. Please submit yours, and check out the project-gallery for inspiration.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markata-0.7.4.dev1.tar.gz (373.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markata-0.7.4.dev1-py3-none-any.whl (111.6 kB view details)

Uploaded Python 3

File details

Details for the file markata-0.7.4.dev1.tar.gz.

File metadata

  • Download URL: markata-0.7.4.dev1.tar.gz
  • Upload date:
  • Size: 373.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for markata-0.7.4.dev1.tar.gz
Algorithm Hash digest
SHA256 bb2abdf49b06ec274c2db83976f5e8b9c52f4d1602d031fd1b535252191b2704
MD5 17a9b68c3672a9a81ee5d8cda939e708
BLAKE2b-256 124891253420905f01c9505f0d2c5c29d55e149af0510f9b33a616d97ef2aaa2

See more details on using hashes here.

File details

Details for the file markata-0.7.4.dev1-py3-none-any.whl.

File metadata

  • Download URL: markata-0.7.4.dev1-py3-none-any.whl
  • Upload date:
  • Size: 111.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for markata-0.7.4.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 769ff1d38f506607021f21b12293457ef3a0cc4b7df3627261f4858722bfa799
MD5 2917778ebd99a9401c9e2bea2204d453
BLAKE2b-256 81eb88c2e5307007735ff38420026c75f8818856fb669db642c3973aad316df3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page