Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip
Browse files Browse the repository at this point in the history
MassimilianoLattanzio committed Nov 24, 2023
1 parent 1355f4b commit df4934d
Showing 3 changed files with 40 additions and 2 deletions.
33 changes: 33 additions & 0 deletions docs/_layouts/departments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset="UTF-8">

{% seo %}
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#157878">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
{% include head-custom.html %}
</head>
<body>
<a id="skip-to-content" href="#content">Skip to the content.</a>

<header class="page-header" role="banner">
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
</header>

<main id="content" class="main-content" role="main">
{{ content }}

<footer class="site-footer">
{% if site.github.is_project_page %}
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
{% endif %}
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
</footer>
</main>
</body>
</html>
7 changes: 6 additions & 1 deletion docs/cops_solidus.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Solidus
---
layout: departments
title: List of available Solidus cops
---

[back](./)

## Solidus/ClassEvalDecorator

2 changes: 1 addition & 1 deletion tasks/cops_documentation.rake
Original file line number Diff line number Diff line change
@@ -186,7 +186,7 @@ task generate_cops_documentation: :yard_for_generate_documentation do
end
return if selected_cops.empty?

content = +"# #{department}\n"
content = +"---\nlayout: departments\ntitle: List of available #{department} cops\n---\n\n[back](./)\n"
selected_cops.each do |cop|
content << print_cop_with_doc(cop, config)
end

0 comments on commit df4934d

Please sign in to comment.