stamd

A static markdown page generator written in C
git clone git://git.dimitrijedobrota.com/stamd.git
Log | Files | Refs | README | LICENSE

index.hpp (763B)


      1 #pragma once
      2 
      3 #include <memory>
      4 #include <string>
      5 
      6 #include "article.hpp"
      7 
      8 namespace stamd {
      9 
     10 using article_list = std::vector<std::shared_ptr<article>>;
     11 using categories_t = article::categories_t;
     12 
     13 void create_robots(std::ostream& ost);
     14 
     15 void create_sitemap(std::ostream& ost, const article_list& articles);
     16 
     17 void create_atom(std::ostream& ost,
     18                  const std::string& name,
     19                  const article_list& articles);
     20 
     21 void create_rss(std::ostream& ost,
     22                 const std::string& name,
     23                 const article_list& articles);
     24 
     25 void create_index(std::ostream& ost,
     26                   const std::string& name,
     27                   const article_list& articles,
     28                   const categories_t& categories);
     29 
     30 }  // namespace stamd