diff --git a/data/how-it-works.yaml b/data/how-it-works.yaml index 76017e9..7cf654e 100644 --- a/data/how-it-works.yaml +++ b/data/how-it-works.yaml @@ -73,7 +73,7 @@ steps: - id: step-5 title: Create a release and share it summary: "A release builds an installer for each system your app lists (Windows, macOS, Linux); share its link or list the app in the App Centre." - text: A release on GitHub builds an installer for each system listed under distribution.platforms in labconstrictor-app.yaml (all of them when you list none). You share the release, and anyone who can see your repository can install the app from it. + text: A release on GitHub builds an installer for each system listed under distribution.platforms in labconstrictor-app.yaml (every supported system when the field is left out). You share the release, and anyone who can see your repository can install the app from it. region: [6, 768, 820, 122] do: - text: "Check the Actions tab of your repository: no workflow should be running." diff --git a/scripts/lcsite/citation.py b/scripts/lcsite/citation.py index 9407f8b..7205a55 100644 --- a/scripts/lcsite/citation.py +++ b/scripts/lcsite/citation.py @@ -54,12 +54,10 @@ def version_sentence(app: dict) -> str: def app_section(app: dict) -> str: - """The "How to cite" section of an app page, from the manifest's `doi`; "" for a testing app that has none.""" + """The "How to cite" section of an app page, from the manifest's `doi`; "" for an app that names no publication.""" doi = app["manifest"]["doi"] if "doi" in app["manifest"] else "" if doi: link = esc(doi_link(doi)) return (f'

How to cite

The authors give this publication to cite: doi:{esc(doi)}

' f'

Read the paper

{version_sentence(app)}') - if app["section"] == "testing": - return "" - return '

How to cite

The authors name no publication to cite.

' + version_sentence(app) + return "" diff --git a/tests/test_citation.py b/tests/test_citation.py index 973c8c6..63f622f 100644 --- a/tests/test_citation.py +++ b/tests/test_citation.py @@ -61,9 +61,9 @@ def test_with_a_doi_it_links_the_paper_and_names_the_version(self) -> None: self.assertIn("Read the paper", html) self.assertIn("latest release: v0.1.1", html) - def test_without_a_doi_it_only_says_the_listing_names_none(self) -> None: - """No invented reference; a testing app without a doi has no section; an app without a release has no version sentence.""" - self.assertIn("The authors name no publication to cite", citation.app_section(app())) + def test_without_a_doi_there_is_no_section(self) -> None: + """No invented reference: an app that names no publication has no How to cite section; no release, no version sentence.""" + self.assertEqual(citation.app_section(app()), "") self.assertEqual(citation.app_section(app(section="testing")), "") self.assertNotIn("Name the version", citation.app_section(app(release=False)))