diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000..51d94c3f --- /dev/null +++ b/NOTICE @@ -0,0 +1,25 @@ +Divan (دیوان) +Copyright (C) 2026 Anas Rashid and Divan contributors + +This program is free software under the GNU General Public License version 3 (see LICENSE), with the +additional terms below, which the GPL allows in its section 7. They apply to the code written for Divan by its +authors. (The earlier .NET code at the tag dotnet-final is a fork of GanjoorService and stays under that +project's licence; these terms do not apply to it.) + +Additional terms under section 7 of the GNU GPL version 3 + +1. Attribution (section 7(b)). If you convey this work or a work based on it, keep this attribution in the + Appropriate Legal Notices it displays (for a website: its about page or footer): + "Based on Divan (https://git.anasrashid.net/anas/divan) by Anas Rashid, under the GNU GPL v3." + +2. Origin (section 7(c)). A modified version must be marked as different from the original, and must not + be presented as Divan, or as made, approved or endorsed by Divan or its authors. + +3. Names and logos (section 7(e)). This licence grants no rights under trademark law to the names, logos + and other brand features of Divan, listed in TRADEMARKS.md: among them the name دیوان / Divan for this + project and site, the shamsa and ترنج logos and icons, the tagline "ایک پاکستانی کی طرف سے، پاکستان کے + لیے", and the masthead and share-card designs. A modified version made available to the public must use + its own name and logo (see "Making your own site" in TRADEMARKS.md). + +The texts shown on the site are in the public domain; the Divan data is CC BY-SA 4.0 (see the divan-data +repository). These terms concern only the software and Divan's brand. diff --git a/README.md b/README.md index 056b1113..0fc4b127 100644 --- a/README.md +++ b/README.md @@ -77,4 +77,4 @@ v2 is reaching parity with Ganjoor's features in phases: reading, accounts, comm ## License -GPL-3.0 (see `LICENSE`). Texts are public domain; the divan-data compilation is CC BY-SA 4.0 (Urdu Wikisource and Wikipedia contributors). +GPL-3.0 (see `LICENSE`), with additional terms under its section 7 (see `NOTICE`): keep the attribution "Based on Divan by Anas Rashid", mark modified versions as different, and do not use Divan's name and logos for your own public site ([TRADEMARKS.md](TRADEMARKS.md); set your own in `web/src/lib/brand.ts`). Texts are public domain; the divan-data compilation is CC BY-SA 4.0 (Urdu Wikisource and Wikipedia contributors, and Divan). diff --git a/TRADEMARKS.md b/TRADEMARKS.md new file mode 100644 index 00000000..d0da2c5f --- /dev/null +++ b/TRADEMARKS.md @@ -0,0 +1,37 @@ +# Divan's name and logos + +The code is free software (GNU GPL v3, with the additional terms in [NOTICE](NOTICE)), and you are welcome to +study it, change it and run your own site with it. Divan's **name and logos are not part of that licence**: +they identify this project and its site, so that readers know what is Divan and what is not. + +## What belongs to Divan + +- The name **دیوان / Divan** used for this project, its site and its apps. +- The logos and icons: the shamsa (illuminated medallion) and the ترنج (lobed medallion), in every form: + `web/public/logo/`, `web/public/favicon.*`, `web/public/icon-*.png`, `web/public/apple-touch-icon.png`, + `web/public/og-image.png`, and the logo drawn in the header and home page. +- The tagline **ایک پاکستانی کی طرف سے، پاکستان کے لیے** with Pakistan's flag in the footer. +- The masthead (the logo beside **اردو کا کلاسیکی ادب** between the couplet lines) and the share-card design. + +## What you may do + +- Say that your work is **based on Divan**, link to it, and describe what Divan is. +- Run Divan unchanged for yourself or for testing, privately. +- Use the name when writing about the project (articles, reviews, talks). + +## What you may not do + +- Run a public site, app or service from a modified copy under the Divan name or with its logos. +- Use a name, domain, logo or design that could make people think your site is Divan or is endorsed by it. +- Remove the attribution required by [NOTICE](NOTICE). + +## Making your own site + +1. Set your name and taglines in `web/src/lib/brand.ts`. +2. Replace the logo files listed above with your own, and the logo in the header (`web/src/layouts/Base.astro`) + and home page (`web/src/pages/index.astro`). +3. Rewrite the about page (`web/src/pages/about.astro`) for your project, keeping the attribution + "Based on Divan by Anas Rashid" from [NOTICE](NOTICE). +4. Update `web/public/site.webmanifest`. + +Questions or permission requests: open an issue on the Divan repository. diff --git a/web/src/layouts/Base.astro b/web/src/layouts/Base.astro index cfd484b9..dd437d43 100644 --- a/web/src/layouts/Base.astro +++ b/web/src/layouts/Base.astro @@ -8,9 +8,10 @@ import '../styles/global.css'; interface Props { title?: string; description?: string; q?: string; author?: string; jsonld?: object } // author and jsonld describe a work for search engines and the browser's own reader view const { title, description = 'اردو کا کلاسیکی ادب', q = '', author, jsonld } = Astro.props; -const fullTitle = title ? `${title} · دیوان` : 'دیوان · اردو کا کلاسیکی ادب'; +const fullTitle = title ? `${title} · ${brand.name}` : `${brand.name} · ${brand.tagline}`; import Icon from '../components/Icon.astro'; import logo from '../../public/logo/turanj.svg?raw'; // inline, so the page can turn its rays +import { brand } from '../lib/brand'; --- @@ -26,7 +27,7 @@ import logo from '../../public/logo/turanj.svg?raw'; // inline, so the page can - + @@ -35,7 +36,7 @@ import logo from '../../public/logo/turanj.svg?raw'; // inline, so the page can - + {author && } {jsonld &&