Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GDPR info in documentation page #503

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion content/resources/hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You will find documentation for every QGIS Long Term Release (LTR) on the respec

{{< language-select >}}

{{< tabs tab1="QGIS |ltrversion|" tab2="QGIS |version|" tab3="QGIS testing (>|version|)" tab4="Archived releases">}}
{{< tabs tab1="QGIS |ltrversion|" tab2="QGIS |version|" tab3="QGIS testing (>|version|)" tab4="Archived releases" tab5="Data protection">}}


{{< tab-content-start tab="1" >}}
Expand Down Expand Up @@ -164,6 +164,13 @@ We are still updating (not translating yet) the documentation for releases newer

{{< tab-content-end >}}

{{< tab-content-start tab="5" >}}

In line with GDPR and related data protection regulations, we provide the following documentation:

{{< rich-list listLink="https://docs.qgis.org/latest/en/docs/user_manual/appendices/qgis_desktop_network_connections.html" layoutClass="inline-block" listTitle="QGIS Application Network Connections" >}}

{{< tab-content-end >}}

{{< rich-box-start >}}
{{< rich-content-start themeClass="coloring-6">}}
Expand Down
3 changes: 3 additions & 0 deletions playwright/ci-test/tests/06-resources-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ test.describe("Resources pages", () => {
for (const text of qgisResourcesPage.textList) {
await expect(qgisResourcesPage.pageBody).toContainText(text);
}

await qgisResourcesPage.dataProtectionLink.click();
await expect(qgisResourcesPage.appNetworkConnectionsLink).toBeVisible();
});

test("Installation guide", async ({ sidebar, installationGuidePage }) => {
Expand Down
11 changes: 11 additions & 0 deletions playwright/ci-test/tests/fixtures/qgis-resources-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export class QgisResourcesPage {
public readonly pdfManualsLink: Locator;
public readonly htmlZipManualsLink: Locator;
public readonly viewSupportOptionsLink: Locator;
public readonly dataProtectionLink: Locator;
public readonly appNetworkConnectionsLink: Locator;
public readonly textList: string[] = [
"Resources",
"🖖 Installation troubles?",
Expand All @@ -28,6 +30,7 @@ export class QgisResourcesPage {
"For developers",
"For download",
"Support",
"Data protection",
];

constructor(public readonly page: Page) {
Expand Down Expand Up @@ -77,6 +80,14 @@ export class QgisResourcesPage {
this.htmlZipManualsLink = this.page.getByRole("link", {
name: "HTML zip of the manuals",
});

this.dataProtectionLink = this.page.getByText(
'Data protection',
{ exact: true }
);
this.appNetworkConnectionsLink = this.page.getByRole("link", {
name: "QGIS Application Network Connections",
});
this.viewSupportOptionsLink = this.page.getByRole("link", {
name: "View support options",
});
Expand Down
4 changes: 4 additions & 0 deletions themes/hugo-bulma-blocks-theme/layouts/shortcodes/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{{ $tab2 := .Get "tab2" }}
{{ $tab3 := .Get "tab3" }}
{{ $tab4 := .Get "tab4" }}
{{ $tab5 := .Get "tab5" }}

{{ with index .Site.Data.conf }}
{{ $tab1 = replace $tab1 "|ltrversion|" .ltrversion }}
Expand All @@ -24,6 +25,9 @@
{{ if $tab4 }}
<li><a id="tab-4">{{ $tab4 }}</a></li>
{{ end }}
{{ if $tab4 }}
<li><a id="tab-5">{{ $tab5 }}</a></li>
{{ end }}
</ul>
</div>

Expand Down
Loading