Skip to content

Commit

Permalink
docs: update index page with versions
Browse files Browse the repository at this point in the history
  • Loading branch information
guidograzioli committed Mar 1, 2022
1 parent 6860c81 commit 2635c75
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
#ln --force --no-dereference --symbolic $(dirname *.*.*/index.html | sort --version-sort --reverse | head -n1) latest
ln --force --no-dereference --symbolic main latest
git show origin/main:docs/_gh_include/header.inc > index.html
(echo main; echo latest; dirname *.*.*/index.html | sort --version-sort --reverse) | xargs -I@@ -n1 echo '<div class="col-md-4 center"><a href="@@/" class="btn-doc btn"><i class="fa fa-newspaper-o"></i><p>@@</p></a></div>' >> index.html
(echo main; echo latest; dirname *.*.*/index.html | sort --version-sort --reverse) | xargs -I@@ -n1 echo '<li class="toctree-l1"><a class="reference internal" href="@@/">@@</a></ul>' >> index.html
git show origin/main:docs/_gh_include/footer.inc >> index.html
git add $(basename ${GITHUB_REF}) latest index.html
git commit -m "Update docs for $(basename ${GITHUB_REF})" || true
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

21 changes: 19 additions & 2 deletions docs/_gh_include/footer.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
</ul>
</div>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
</div>
<hr/>
<div role="contentinfo">
<p>&#169; Copyright 2022, Red Hat, Inc..</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>

</body>
</div>
</section>
</div>
</body>
</html>
50 changes: 38 additions & 12 deletions docs/_gh_include/header.inc
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
<!doctype html>
<html>
<head>
<title>Infinispan Ansible Collection documentation index</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" media="all" href="https://theforeman.org/static/css/bootstrap.min.css"/>
<link rel="stylesheet" media="all" href="https://theforeman.org/static/css/bootstrap-responsive.min.css"/>
<link rel="stylesheet" media="all" href="https://theforeman.org/static/css/style.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<title>Infinispan Ansible Collection documentation index</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://ansible-middleware.github.io/infinispan/main/_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="https://ansible-middleware.github.io/infinispan/main/_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="https://ansible-middleware.github.io/infinispan/main/_static/ansible-basic-sphinx-ext.css" type="text/css" />
<script data-url_root="./" id="documentation_options" src="https://ansible-middleware.github.io/infinispan/main/_static/documentation_options.js"></script>
<script src="https://ansible-middleware.github.io/infinispan/main/_static/jquery.js"></script>
<script src="https://ansible-middleware.github.io/infinispan/main/_static/underscore.js"></script>
<script src="https://ansible-middleware.github.io/infinispan/main/_static/doctools.js"></script>
<script src="https://ansible-middleware.github.io/infinispan/main/_static/js/theme.js"></script>
</head>

<body style="margin:0px 15px">
<h1>Red Hat Infinspan Ansible Collection</h1>

<hr />

<div class="row plugin-manual">
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="#" class="icon icon-home"> Infinispan Ansible Collection</a>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="#" class="icon icon-home"></a> &raquo;</li>
<li>Welcome to Infinispan Collection documentation</li>
<li class="wy-breadcrumbs-aside"></li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="welcome-to-infinispan-collection-documentation">
<h1>Welcome to Infinispan Collection documentation<a class="headerlink" href="#welcome-to-infinispan-collection-documentation" title="Permalink to this headline"></a></h1>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Pick collection version:</span></p>
<ul>
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ tags:
dependencies:
"middleware_automation.redhat_csp_download": ">=1.2.1"
repository: https://github.com/ansible-middleware/infinispan
documentation: https://github.com/ansible-middleware/infinispan
documentation: https://ansible-middleware.github.io/infinispan
homepage: https://github.com/ansible-middleware/infinispan
issues: https://github.com/ansible-middleware/infinispan/issues
1 change: 1 addition & 0 deletions molecule/default/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ collections:
- name: middleware_automation.redhat_csp_download
version: ">=1.2.1"
- name: community.general
- name: ansible.posix
- name: community.docker
version: ">=1.9.1"

1 change: 1 addition & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ collections:
- name: middleware_automation.redhat_csp_download
version: ">=1.2.1"
- name: community.general
- name: ansible.posix

0 comments on commit 2635c75

Please sign in to comment.