Skip to content

Commit

Permalink
Merge pull request #157 from KonnorRogers/main
Browse files Browse the repository at this point in the history
main -> latest
  • Loading branch information
KonnorRogers authored Feb 15, 2024
2 parents 2d28335 + bb277ec commit fb18972
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
4 changes: 3 additions & 1 deletion docs/frontend/styles/components/_hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

.hero--mobile a {
max-width: 100%;
display: block;
display: flex;
flex-wrap: wrap;
justify-content: center;
text-align: center;
}

Expand Down
27 changes: 20 additions & 7 deletions docs/plugins/builders/changelog_generator.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
class Builders::ChangelogGenerator < SiteBuilder
def build
# changelog_file = File.expand_path("../../../CHANGELOG.md", __dir__)
# add_resource :documentation, "references/00-changelog.md" do
# title "Changelog"
# permalink "/references/changelog"
# category "references"
# content File.read(changelog_file)
# end
hook :site, :post_read do
generate_changelog
end

hook :site, :post_reload do
generate_changelog
end
end

def generate_changelog
changelog_file = File.expand_path("../../../CHANGELOG.md", __dir__)
add_resource :documentation, "references/00-changelog.md" do
title "Changelog"
permalink "/references/changelog/"
category "references"
layout "doc"
content File.read(changelog_file)
end
end
end


0 comments on commit fb18972

Please sign in to comment.