Skip to content

Make Devlog available to feed readers #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:


env:
ZOLA_VERSION: 0.18.0
ZOLA_VERSION: 0.19.2

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@v4

- name: "Build website"
uses: shalzz/zola-deploy-action@master
uses: shalzz/zola-deploy-action@v0.19.2
env:
BUILD_DIR: website
TOKEN: fake-token
Expand Down
8 changes: 8 additions & 0 deletions website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ compile_sass = false
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false

# When set to "true", a feed is automatically generated.
generate_feeds = true

# The filename to use for the feed. Used as the template filename, too.
# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed.
# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed.
feed_filenames = ["atom.xml"]

#taxonomies = [
# {name = "tags", paginate_by = 5, feed = true},
# {name = "categories", paginate_by = 5, feed = true},
Expand Down
3 changes: 1 addition & 2 deletions website/content/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

title = "API Docs"
description = "Latest documentation of the public API"
date = 2000-01-01
template = "docs.html"
page_template = "page.html"
sort_by = "date"
Expand All @@ -23,4 +22,4 @@ To check out released crates, check out [docs.rs/gdnative][gdnative].
There are no releases for gdext yet.


[gdnative]: https://docs.rs/gdnative
[gdnative]: https://docs.rs/gdnative
4 changes: 4 additions & 0 deletions website/templates/devlog-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

{% extends "layout.html" %}

{% block page_head %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
{% endblock %}

{% block content %}
<div class="flex items-center flex-col mt-10">
<div class="markdown-content">
Expand Down
4 changes: 4 additions & 0 deletions website/templates/devlog.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

{% extends "layout.html" %}

{% block page_head %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
{% endblock %}

{% block content %}
<div class="flex items-center flex-col mt-10">
<!-- Content -->
Expand Down
3 changes: 3 additions & 0 deletions website/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
<meta name="twitter:description" content="{{ c_page_summary }}">
<meta name="twitter:image" content="{{ c_page_image | safe }}">

{% block page_head %}
{% endblock%}

</head>
<body class="body-background dark:body-background flex flex-col h-screen justify-between">
<!---------------------------------------------------------->
Expand Down
Loading