Skip to content

Commit

Permalink
Update to latest GitHubPagesForGAP template
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Feb 20, 2024
1 parent 80921c1 commit 905b01a
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 16 deletions.
34 changes: 33 additions & 1 deletion _data/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: ModIsom
version: 2.5.4
version: "2.5.4"
license: "GPL-2.0-or-later"
date: 2023-02-27
description: |
Computing automorphisms and checking isomorphisms for modular group algebras of finite p-groups
Expand Down Expand Up @@ -35,3 +36,34 @@ abstract: |
status: accepted
doc-html: htm/chapters.htm
doc-pdf: doc/manual.pdf
keywords: |
modular isomorphism problem, automorphism group, isomorphism testing, nilpotent algebras, nilpotent quotient, Kurosh algebras.
citeas: |
<p class='BibEntry'>
[<span class='BibKey'>EK23</span>] <b class='BibAuthor'>Eick, B. and Konovalov, O.</b>,
<i class='BibTitle'>ModIsom, Computing automorphisms and checking isomorphisms for modular group algebras of finite p-groups,
Version 2.5.4</i>
(<span class='BibYear'>2023</span>)<br />
(<span class='BibNote'>Refereed GAP package</span>),
<span class='BibHowpublished'><a href="https://gap-packages.github.io/modisom/">https://gap-packages.github.io/modisom/</a></span>.
</p>
bibtex: |
@misc{ ModIsom2.5.4,
author = {Eick, B. and Konovalov, O.},
title = {{ModIsom}, Computing automorphisms and checking
isomorphisms for modular group algebras of finite
p-groups, {V}ersion 2.5.4},
month = {Feb},
year = {2023},
note = {Refereed GAP package},
howpublished = {\href {https://gap-packages.github.io/modisom/}
{\texttt{https://gap-packages.github.io/}\discretionary
{}{}{}\texttt{modisom/}}},
keywords = {modular isomorphism problem; automorphism group;
isomorphism testing; nilpotent algebras; nilpotent
quotient; Kurosh algebras},
printedkey = {EK23}
}
1 change: 1 addition & 0 deletions _includes/button-bibtex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<button type="button" class="btn active" data-clipboard-text="{{site.data.package.bibtex | xml_escape}}">Copy BibTeX to clipboard</button>
15 changes: 11 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@
<meta charset="utf-8">
<title>GAP package {{ site.data.package.name }}</title>

{% if site.data.package.keywords and site.data.package.keywords.size > 0 %}
<meta name="keywords" content="{{site.data.package.keywords}}" />
{% endif %}

<link rel="stylesheet" type="text/css" href="stylesheets/styles.css">
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css">
<script type="text/javascript"
src="javascripts/scale.fix.js">
</script>
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=TeX-MML-AM_CHTML' async></script>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js"></script>

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<script>new ClipboardJS('.btn');</script>
<div class="wrapper">
<header>
<h1 class="header">{{ site.data.package.name }}</h1>
Expand Down Expand Up @@ -55,7 +60,9 @@ <h1 class="header">{{ site.data.package.name }}</h1>

</section>
<footer>
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a>,
based on <a href="https://github.com/gap-system/GitHubPagesForGAP">GitHubPagesForGAP</a>
using the Dinky theme</small></p>
<p><small><em>Last updated: {{ 'now' | date: "%Y-%m-%d %H:%M" }}</em></small></p>
</footer>
</div>
Expand Down
20 changes: 19 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ The current version of this package is version {{site.data.package.version}}, re
For more information, please refer to [the package manual]({{site.data.package.doc-html}}).
There is also a [README](README.html) file.

{% if site.data.package.license %}
License: [{{ site.data.package.license }}](https://spdx.org/licenses/{{ site.data.package.license }})
{% endif %}

## Dependencies

This package requires GAP version {{site.data.package.GAP}}
Expand Down Expand Up @@ -38,11 +42,25 @@ The following additional GAP packages are not required, but suggested:
{% if site.data.package.contributors and site.data.package.contributors.size > 0 %}
## Contributor{% if site.data.package.contributors.size != 1 %}s{% endif %}
{% for person in site.data.package.contributors %}
{% if person.url %}{{ person.name }}{% else %}{{ person.name }}{% endif %}
{% if person.url %}<a href="{{ person.url }}">{{ person.name }}</a>{% else %}{{ person.name }}{% endif %}
{%- if forloop.last -%}.{% else %}, {%- endif -%}
{% endfor %}
{% endif %}

{% if site.data.package.citeas %}
## Citing

Please, cite this package as

{{site.data.package.citeas}}

You can get more info by typing `Cite("{{ site.data.package.name }}");` in the gap prompt.

{% include button-bibtex.html %}

{% endif %}


{% if site.github.issues_url %}
## Feedback

Expand Down
39 changes: 29 additions & 10 deletions update.g
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Parse PackageInfo.g and regenerate _data/package.yml from it.

BindGlobal( "PrintPeopleList", function(stream, people)
PrintPeopleList := function(stream, people)
local p;
for p in people do
AppendTo(stream, " - name: ", p.FirstNames, " ", p.LastName, "\n");
Expand All @@ -31,9 +31,9 @@ BindGlobal( "PrintPeopleList", function(stream, people)
fi;
od;
AppendTo(stream, "\n");
end );
end;

BindGlobal( "PrintPackageList", function(stream, pkgs)
PrintPackageList := function(stream, pkgs)
local p, pkginfo;
for p in pkgs do
AppendTo(stream, " - name: \"", p[1], "\"\n");
Expand All @@ -44,10 +44,10 @@ BindGlobal( "PrintPackageList", function(stream, pkgs)
fi;
od;
AppendTo(stream, "\n");
end );
end;

# verify date is of the form YYYY-MM-DD
BindGlobal( "IsValidISO8601Date", function(date)
IsValidISO8601Date := function(date)
local day, month, year;
if Length(date) <> 10 then return false; fi;
if date[5] <> '-' or date[8] <> '-' then return false; fi;
Expand All @@ -59,16 +59,19 @@ BindGlobal( "IsValidISO8601Date", function(date)
month := date[2];
year := date[1];
return month in [1..12] and day in [1..DaysInMonth(month, year)];
end );
end;

BindGlobal( "GeneratePackageYML", function(pkg)
GeneratePackageYML:=function(pkg)
local stream, date, authors, maintainers, contributors, formats, f, tmp;

stream := OutputTextFile("_data/package.yml", false);
SetPrintFormattingStatus(stream, false);

AppendTo(stream, "name: ", pkg.PackageName, "\n");
AppendTo(stream, "version: ", pkg.Version, "\n");
AppendTo(stream, "version: \"", pkg.Version, "\"\n");
if IsBound(pkg.License) then
AppendTo(stream, "license: \"", pkg.License, "\"\n");
fi;

# convert date from DD/MM/YYYY to ISO 8601, i.e. YYYY-MM-DD
#
Expand Down Expand Up @@ -168,10 +171,26 @@ BindGlobal( "GeneratePackageYML", function(pkg)
fi;
fi;

# TODO: use Keywords?
if IsBound(pkg.Keywords) and
Length(pkg.Keywords) > 0 then
AppendTo(stream, "keywords: |\n");
AppendTo(stream, " ", JoinStringsWithSeparator(pkg.Keywords,", "),".\n");
fi;

AppendTo(stream, "citeas: |\n");
for tmp in SplitString(StringBibXMLEntry(ParseBibXMLextString(BibEntry(pkg)).entries[1],"HTML"),"\n") do
AppendTo(stream, " ", tmp, "\n");
od;
AppendTo(stream, "\n");

AppendTo(stream, "bibtex: |\n");
for tmp in SplitString(StringBibXMLEntry(ParseBibXMLextString(BibEntry(pkg)).entries[1],"BibTeX"),"\n") do
AppendTo(stream, " ", tmp, "\n");
od;
AppendTo(stream, "\n");

CloseStream(stream);
end );
end;
Read("PackageInfo.g");
GeneratePackageYML(GAPInfo.PackageInfoCurrent);
QUIT;

0 comments on commit 905b01a

Please sign in to comment.