$${div_features}
|$${div_screenshots}
|$${div_end}
|$${div_downloads}
|$${div_features}
|$${div_screenshots}
|$${div_end}
|$${section_end}
||g' $(@:.xml=.tmpxml) > $@ rm -f $(@:.xml=.md) $(@:.xml=.tmpxml) -xeplist: $(PAGES_SRC_DIR)/doap-stylesheet/style.xsl $(PAGES_SRC_DIR)/doap/profanity.doap \ +$(PAGES_SRC_DIR)/profanity.doap: + $(CURL) -sSL $(DOAP_URL) > $@ + +$(PAGES_SRC_DIR)/xeplist/xeplist.xml: + $(CURL) -sSL $(XEPLIST_URL) > $@ + +xeplist: $(PAGES_SRC_DIR)/doap-stylesheet/style.xsl $(PAGES_SRC_DIR)/profanity.doap \ $(PAGES_SRC_DIR)/xeplist/xeplist.xml cp --preserve=mode,ownership,timestamps $(PAGES_SRC_DIR)/xeplist/xeplist.xml \ $(PAGES_SRC_DIR)/doap-stylesheet/ $(XSLTPROC) $(PAGES_SRC_DIR)/doap-stylesheet/style.xsl \ - $(PAGES_SRC_DIR)/doap/profanity.doap \ + $(PAGES_SRC_DIR)/profanity.doap \ > xeps.xml rm $(PAGES_SRC_DIR)/doap-stylesheet/xeplist.xml themegallery.html: gallery-template.xml $(SBLG) -o $@ -t gallery-template.xml -c themegallery.xml -$(BLOG_POST_OUT_DIR)/atom.xml $(BLOG_POST_OUT_DIR)/index.html $(BLOG_POSTS_OUT): $(BLOG_POSTS) +BLOG_POST_TEMPLATES = $(wildcard $(BLOG_POST_SRC_DIR)/*.xml) +$(BLOG_POST_OUT_DIR)/atom.xml $(BLOG_POST_OUT_TOP_DIR)/index.xml $(BLOG_POST_OUT_DIR)/index.html $(BLOG_POSTS_OUT): $(BLOG_POSTS) $(BLOG_POST_TEMPLATES) $(MAKE) -C $(BLOG_POST_SRC_DIR) mkdir -p $(BLOG_POST_OUT_DIR) cp --preserve=mode,ownership,timestamps $(BLOG_SRC_TOP_DIR)/index.html $(BLOG_POST_OUT_TOP_DIR)/ mv $(BLOG_POST_SRC_DIR)/*.html $(BLOG_POST_OUT_DIR)/ - mv $(BLOG_POST_SRC_DIR)/atom.xml $(BLOG_POST_OUT_DIR)/ + cp --preserve=mode,ownership,timestamps $(BLOG_POST_SRC_DIR)/atom.xml $(BLOG_POST_OUT_TOP_DIR)/index.xml + cp --preserve=mode,ownership,timestamps $(BLOG_POST_SRC_DIR)/atom.xml $(BLOG_POST_OUT_TOP_DIR)/atom.xml + cp --preserve=mode,ownership,timestamps $(BLOG_POST_SRC_DIR)/atom.xml $(BLOG_POST_OUT_DIR)/index.xml + mv $(BLOG_POST_SRC_DIR)/atom.xml $(BLOG_POST_OUT_DIR)/atom.xml cp --preserve=mode,ownership,timestamps --recursive $(BLOG_POST_SRC_DIR)/img $(BLOG_POST_OUT_DIR)/ $(MAKE) -C $(BLOG_POST_SRC_DIR) clean -$(CONTRIBUTORS_OUT_DIR)/index.html $(CONTRIBUTORS_OUT): $(CONTRIBUTORS) +CONTRIBUTOR_TEMPLATES = $(wildcard $(CONTRIBUTORS_SRC_DIR)/*.xml) +$(CONTRIBUTORS_OUT_DIR)/index.html $(CONTRIBUTORS_OUT): $(CONTRIBUTORS) $(CONTRIBUTOR_TEMPLATES) $(MAKE) -C $(CONTRIBUTORS_SRC_DIR) - mkdir $(CONTRIBUTORS_OUT_DIR) + mkdir -p $(CONTRIBUTORS_OUT_DIR) mv $(CONTRIBUTORS_SRC_DIR)/*.html $(CONTRIBUTORS_OUT_DIR)/ cp --preserve=mode,ownership,timestamps --recursive $(CONTRIBUTORS_SRC_DIR)/img $(CONTRIBUTORS_OUT_DIR)/ $(MAKE) -C $(CONTRIBUTORS_SRC_DIR) clean -$(REDIRECTS): $(REDIRECTS_SRC) - cp --preserve=mode,ownership,timestamps $(addprefix $(REDIRECTS_DIR)/,$@) . - clean: $(MAKE) -C $(BLOG_POST_SRC_DIR) clean $(MAKE) -C $(CONTRIBUTORS_SRC_DIR) clean - rm -f index.html $(PAGES) themegallery.html $(REDIRECTS) $(PAGES_SRC_DIR)/xeps.xml + rm -f index.html $(PAGES) $(PAGES_XML) themegallery.html $(PAGES_SRC_DIR)/xeps.xml $(PAGES_SRC_DIR)/profanity.doap $(PAGES_SRC_DIR)/xeplist/xeplist.xml rm -r $(BLOG_POSTS_XML) $(BLOG_POSTS_OUT) $(BLOG_POST_OUT_TOP_DIR) rm -r $(CONTRIBUTORS_XML) $(CONTRIBUTORS_OUT) $(CONTRIBUTORS_OUT_DIR) diff --git a/README.md b/README.md index 5dc2290..3923f74 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The website is generated from XML templates and Markdown sources using [sblg](ht | **Style** | `css/*.css` | CSS | ### Page Sources -The source files for the landing page (`index.md`) and other top level pages in `pagesource/` are writen in Markdown. They are transformed to HTML and then injected into the appropriate header and footer templates. The list of supported XEPS is generated using a git submodule for https://github.com/profanity-im/profanity/blob/master/profanity.doap. +The source files for the landing page (`index.md`) and other top level pages in `pagesource/` are writen in Markdown. They are transformed to HTML and then injected into the appropriate header and footer templates. The list of supported XEPS is generated from https://raw.githubusercontent.com/profanity-im/profanity/refs/heads/master/profanity.doap. ### Blog Blog posts and contributor profiles are written in Markdown. @@ -39,13 +39,12 @@ To build the site locally, run ``` git clone https://github.com/profanity-im/profanity-im.github.io.git cd profanity-im.github.io -git submodule update --init --recursive make ``` You will need `sblg`, `lowdown` and `libxslt` installed on your system. -To preview the site locally, run `make install` which will create a directory `site`, open `site/index.html` in a web browser. +To preview the site locally, run `make install` which will create a directory `site`, open `site/index.html` in a web browser. You can also just run `make && python3 -m http.server 8000`. To remove the generated files and keep the source files, run `make clean`. diff --git a/atom-template.xml b/atom-template.xml index d7750f2..be89d72 100644 --- a/atom-template.xml +++ b/atom-template.xml @@ -2,7 +2,7 @@
+ - - Profanity + + Profanity
Contributors
- ${sblg-title} @@ -31,7 +28,12 @@