diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml deleted file mode 100644 index 770488e..0000000 --- a/.forgejo/workflows/check.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Builds the site with the motorino pinned in .motorino-version and checks every page with the -# Nu HTML Checker, on every push to main and on every pull request, on the shared runner of git.kmalloc.org. -# The deploy is not here: the hook on the server publishes main. -name: check - -on: - push: - branches: [main] - pull_request: - -jobs: - check: - runs-on: docker - steps: - - uses: https://code.forgejo.org/actions/checkout@v4 - - name: Install the pinned motorino - run: | - version=$(sed -n 1p .motorino-version) - hash=$(sed -n 2p .motorino-version) - curl -fsSL -o /usr/local/bin/motorino "https://git.kmalloc.org/squid/motorino/releases/download/v${version}/motorino-linux-amd64" - echo "${hash} /usr/local/bin/motorino" | sha256sum -c - - chmod 755 /usr/local/bin/motorino - - name: Build the site - run: motorino build -site . -out public - - name: Install the HTML checker - run: | - apt-get update -qq - apt-get install -y -qq --no-install-recommends default-jre-headless - npm install --no-save --no-audit --no-fund --prefix /tmp/vnu vnu-jar@26.11.14 - - name: Check the HTML and the CSS - run: java -jar /tmp/vnu/node_modules/vnu-jar/build/dist/vnu.jar --also-check-css $(find public -name '*.html') diff --git a/.gitignore b/.gitignore index 0f4c639..a81134f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ preview/ __pycache__/ *.pyc -capsule/ -public/ diff --git a/.motorino-version b/.motorino-version index 4661f0c..019b4fc 100644 --- a/.motorino-version +++ b/.motorino-version @@ -1,2 +1,2 @@ -1.3.0 -de9e44d1b2e7924579371787b9c54de6772e579d81344927fcc392c772b9715c +1.0.0 +920833d63d0552d6049146d1e2929b1663e26b2585714600b27e6351f20ab950 diff --git a/LICENSE b/LICENSE index b8e4596..4920e85 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ kmalloc.org: license of the texts The texts of the kmalloc.org website and of the kmalloc.org manifesto -(content/, lang/*.json, news/*.md) are released under the +(MANIFESTO.*.md, lang/*.json, news/*.md) are released under the Creative Commons Attribution-ShareAlike 4.0 International license (CC BY-SA 4.0). @@ -10,7 +10,7 @@ Creative Commons Attribution-ShareAlike 4.0 International license Not covered by this license: - the Funkadelic quote in the manifesto, which belongs to its authors; -- the code (templates/, static/style.css) and the logo (logo/). +- the code (build.py, templates/, static/style.css) and the logo (logo/). The official legal code follows, as published by Creative Commons at https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt diff --git a/MANIFESTO.de.md b/MANIFESTO.de.md new file mode 100644 index 0000000..cb7a608 --- /dev/null +++ b/MANIFESTO.de.md @@ -0,0 +1,140 @@ +# kmalloc.org: Manifest + +> **Free Your Mind… and Your Ass Will Follow.** +> Funkadelic, *Free Your Mind… and Your Ass Will Follow* (1970) + +**Allocate freedom.** + +## Präambel: Wir fragen nicht um Erlaubnis, um zu denken + +kmalloc.org geht von einer einfachen Überzeugung aus: Freiheit darf kein Abonnement sein, kein Zugeständnis der Mächtigen und kein Häkchen, versteckt am Ende eines Vertrags. + +Wir sind Hacker aus Kultur, antifaschistisch aus Überzeugung, libertär in unserem Streben nach Autonomie und unabhängig in unseren Entscheidungen. Wir verteidigen freie Software, ein offenes Internet, Privatsphäre und Würde bei der Arbeit. Wir glauben an Unternehmertum und Eigeninitiative, nicht an Missbrauch, Monopole oder Ausbeutung. + +Wir suchen keine Gefolgschaft. Wir wollen Menschen, die bereit sind, auch das infrage zu stellen, was hier geschrieben steht. + +## 01. Antifaschistisch. Ohne Zweideutigkeit. + +Wir lehnen Faschismus, Rassismus, Diskriminierung, Führerkult und Autoritarismus ab. Niemandem darf die Würde genommen werden, weder im Namen der Stärke noch der Identität noch des Gehorsams. + +Antifaschismus ist für uns keine Dekoration. Er bedeutet, Pluralismus, Widerspruch und gleiche Rechte aktiv zu verteidigen. + +**Unabhängig heißt nicht neutral gegenüber Unterdrückung.** + +## 02. Das Internet muss frei bleiben + +Das Internet gehört nicht den Plattformen. Wir verteidigen ein Netz, das offen, zugänglich, interoperabel und dezentral ist, gebaut auf Protokollen, die alle implementieren können. + +Wir stellen uns gegen willkürliche Zensur, Massenüberwachung, geschlossene Ökosysteme und künstlich erzeugte Abhängigkeiten. Netzneutralität und die Möglichkeit, ohne willkürliche Genehmigung zu veröffentlichen, zu kommunizieren und umzuziehen, sind Voraussetzungen digitaler Freiheit. + +**Das Internet ist kein Einkaufszentrum mit einem einzigen Eigentümer.** + +## 03. Privacy first. Always. + +Privatsphäre ist ein Recht, kein Privileg und keine Premium-Funktion. Wir müssen nichts zu verbergen haben, um zu erwarten, dass unsere Kommunikation und unsere Gewohnheiten privat bleiben. + +Wir setzen uns ein für starke Verschlüsselung, Datensparsamkeit, das Recht auf Anonymität und die Möglichkeit, Dienste ohne systematisches Tracking zu nutzen. + +Sicherheit darf kein Universalvorwand für anlasslose Überwachung sein. + +**Wer unsere Daten sammelt, muss begründen, warum er sie braucht.** + +## 04. Unsere Daten sind nicht euer Geschäftsmodell + +Wir kritisieren das Geschäftsmodell vieler großer Technologieplattformen, die einen Teil ihrer Macht aus umfassender Datensammlung, Profilbildung und verhaltensbasierter Werbung beziehen. Wir lehnen manipulative Oberflächen, undurchsichtige Einwilligungen und Praktiken ab, die es schwer machen, sich dem Tracking zu entziehen. + +Wir behaupten nicht, dass jede Datennutzung durch jedes große Unternehmen rechtswidrig ist. Wir widersprechen aber der Vorstellung, kommerzielle Überwachung sei unvermeidlich oder Menschen müssten sie hinnehmen, um am digitalen Leben teilzuhaben. + +Unternehmen können Werte schaffen, ohne jede Interaktion in ein persönliches Dossier zu verwandeln. + +**Your business model is not our consent.** + +## 05. Freie Software ist gelebte Freiheit + +Wir verteidigen die Freiheit, Software auszuführen, zu untersuchen, zu verändern und weiterzugeben. Code ist Wissen, und wer den Code kontrolliert, hat Macht darüber, was andere tun können. + +Wir bevorzugen freie, offene und überprüfbare Alternativen. Wir verlangen keine ideologische Reinheit: Wir wollen Werkzeuge, die Menschen tatsächlich nutzen, dokumentieren, pflegen und dauerhaft tragen können. Wo es keine Alternative gibt, versuchen wir, eine zu bauen. + +**Lock-in abzulehnen reicht nicht. Wir müssen den Ausstieg möglich machen.** + +## 06. Technik gehört denen, die sie nutzen + +Wer ein Gerät kauft, sollte es reparieren, warten, verändern und, wo technisch machbar, ein alternatives Betriebssystem darauf installieren können. Wir verteidigen das Recht auf Reparatur, offene Standards und die Möglichkeit, die eigenen Daten zu exportieren. + +Wir lehnen erzwungene Obsoleszenz und die Abhängigkeit von einem einzigen Anbieter ab. + +**Wer nicht gehen kann, hat keine echte Wahl.** + +## 07. Macht muss Rechenschaft ablegen + +Wir lehnen nicht jede Hierarchie ab. Fachwissen, Koordination und Verantwortung können unterschiedliche Rollen erfordern. Aber keine Hierarchie ist schon deshalb legitim, weil es sie gibt. + +Wer entscheidet, muss seine Entscheidungen erklären, Kritik annehmen und für die Folgen einstehen. Widerspruch ist nicht automatisch Ungehorsam. + +**Autorität ohne Rechenschaft ist Missbrauch.** + +## 08. Arbeit ist keine Knechtschaft + +Wir glauben an gute Arbeit, an Professionalität und an die Freiheit, Unternehmen zu gründen. Doch ein Gehalt kauft nicht die Würde eines Menschen. Wir lehnen Erpressung, Demütigung, aufgezwungene unbezahlte Arbeit und ständige Erreichbarkeit als Loyalitätsbeweis ab. + +Wir glauben auch, dass alle, die zusammenarbeiten, Pflichten haben: Zusagen einhalten, die Beiträge anderer anerkennen und Vertrauen nicht ausnutzen. Die Verantwortung ist nicht gleich verteilt: Wer mehr Macht hat, hat größere Pflichten. + +**Respekt lässt sich weder mit einem Gehalt kaufen noch mit einem Titel einfordern.** + +## 09. Freies Unternehmertum, keine Monopole + +Wir halten Gewinn nicht für eine Sünde und Unternehmen nicht für Feinde. Wir verteidigen die Freiheit, Neues zu schaffen, im Wettbewerb zu bestehen und fair entlohnt zu werden. + +Wir stellen uns gegen Monopole, verfestigte Privilegien und Praktiken, die Wahlfreiheit, Wettbewerb oder Interoperabilität untergraben. Erfolg gibt niemandem das Recht, Kundschaft, Beschäftigte oder Konkurrenz einzusperren. + +**Die wirtschaftliche Freiheit der einen darf die der anderen nicht auslöschen.** + +## 10. Wissen wächst, wenn man es teilt + +Hackerkultur bedeutet Neugier, Lernen, Experimentieren und Teilen. Wir beurteilen Ideen nach ihrer Qualität und Menschen nach ihrem Handeln, nicht nach Titeln, Rang oder Zugehörigkeit. + +Wir dokumentieren Fehler, veröffentlichen Lösungen, wo wir können, und schaffen Raum für alle, die noch lernen. Begründeter Widerspruch ist ein Beitrag, keine Bedrohung. + +**Wir verlangen keinen Gehorsam. Wir bitten um kritisches Denken.** + +## 11. Unabhängig, nicht gleichgültig + +Wir schulden weder Parteien noch Unternehmen, Führungsfiguren, Gemeinschaften oder Ideologien bedingungslose Loyalität. Wir können eine Sache teilen und trotzdem diejenigen kritisieren, die behaupten, sie zu vertreten. Keine Idee, auch nicht dieses Manifest, ist der Diskussion entzogen. + +Die eigene Meinung zu ändern, wenn sich die Beweislage ändert, ist keine Schwäche. + +**Integrität zählt mehr als Zugehörigkeit.** + +## 12. Bauen ist eine Form des Widerstands + +Es reicht nicht, auf das hinzuweisen, was kaputt ist. Wir wollen Code schreiben, Dienste betreiben, unabhängige Projekte unterstützen, Dokumentation veröffentlichen und Werkzeuge schaffen, die den Menschen die Kontrolle zurückgeben. + +Eine Alternative, die niemand nutzen kann, reicht nicht. Freiheit braucht Pflege, Zeit, Menschen und Infrastruktur. + +**Build, don't just complain.** + +## Unsere Verpflichtungen + +Bei kmalloc.org müssen diese Grundsätze auch in der Praxis gelten: + +- Keine Werbetracker und keine verhaltensbasierte Werbung. +- Kein Verkauf und keine Monetarisierung personenbezogener Daten der Besucherinnen und Besucher. +- Minimale Erhebung technischer Daten, mit ausdrücklich genannten Zwecken und Speicherfristen. +- Kein Pflichtkonto bei Big Tech, um öffentliche Inhalte zu lesen. +- Vorrang für freie Software, offene Standards und unabhängige Dienste, wo immer es praktikabel ist. +- Transparenz über Abhängigkeiten, Finanzierung, Interessenkonflikte und die Grenzen unserer Entscheidungen. +- Respekt für alle, die mitwirken: keine Diskriminierung, keine Einschüchterung, kein Machtmissbrauch. + +## Epilog: Befreie deinen Kopf + +Wir wollen kein Internet, das alles über uns weiß. Wir wollen ein Internet, das uns frei lässt. + +Wir wollen keine Arbeit, die unsere Würde kauft. Wir wollen Respekt, Kompetenz und Verantwortung. + +Wir wollen keine Technik, die für uns entscheidet. Wir wollen sie verstehen, verändern und hinter uns lassen können. + +Freiheit beginnt nicht mit einem Produkt, einem Betriebssystem oder einer Plattform. Sie beginnt damit, selbst zu denken, und setzt sich fort in den Entscheidungen, die wir zu verteidigen bereit sind. + +**Free Your Mind… and Your Ass Will Follow.** + +*kmalloc.org: Allocate freedom.* diff --git a/MANIFESTO.en.md b/MANIFESTO.en.md new file mode 100644 index 0000000..879b3d8 --- /dev/null +++ b/MANIFESTO.en.md @@ -0,0 +1,174 @@ +# kmalloc.org — Manifesto + +> **Free Your Mind… and Your Ass Will Follow.** +> — Funkadelic, *Free Your Mind… and Your Ass Will Follow* (1970) + +**Allocate freedom.** + +## Preamble — We don't ask permission to think + +kmalloc.org starts from a simple conviction: freedom cannot be a subscription service, a favor granted by those in power, or a checkbox buried at the end of a contract. + +We are hackers by culture, antifascists by conviction, anti-authoritarian in our pursuit of autonomy, and independent in our choices. We defend free software, an open Internet, privacy, and dignity at work. We believe in entrepreneurship and individual initiative, not abuse, monopoly, or exploitation. + +Today, "we" means one person. It stays "we" because it is open: others can join by accepting this manifesto. + +We are not looking for followers. We want people willing to question even what is written here. + +## 01 — Antifascist. No ambiguity. + +We reject fascism, racism, discrimination, the cult of the leader, and authoritarianism. No one should lose their dignity in the name of force, identity, or obedience. + +For us, antifascism is not decoration. It means actively defending pluralism, dissent, and equal rights. + +**Independence does not mean neutrality in the face of oppression.** + +## 02 — The Internet must remain free + +The Internet does not belong to platforms. We defend a network that is open, accessible, interoperable, and decentralized, built on protocols anyone can implement. + +We oppose arbitrary censorship, mass surveillance, walled gardens, and manufactured dependencies. Net neutrality and the ability to publish, communicate, and migrate without arbitrary permission are conditions of digital freedom. + +**The Internet is not a shopping mall with a single owner.** + +## 03 — Privacy first. Always. + +Privacy is a right, not a privilege or a premium feature. We do not need something to hide to expect our communications and habits to remain private. + +We support strong encryption, data minimization, the right to anonymity, and the ability to use services without systematic tracking. + +Security cannot be a blanket excuse for indiscriminate surveillance. + +**Those who collect our data must justify why they need it.** + +## 04 — Our data is not your business model + +We challenge the business model of many major technology platforms that derive part of their power from extensive data collection, profiling, and behavioral advertising. We reject manipulative interfaces, opaque consent, and practices that make tracking difficult to avoid. + +We do not claim every use of data by every large company is unlawful. We reject the notion that commercial surveillance is inevitable, or that users must accept it to take part in digital life. + +Businesses can create value without turning every interaction into a personal dossier. + +**Your business model is not our consent.** + +## 05 — Free software is freedom in practice + +We defend the freedom to run, study, modify, and share software. Code is knowledge, and those who control code have power over what others can do. + +We prefer free, open, auditable alternatives. We are not demanding ideological purity: we want tools that people can actually use, document, maintain, and sustain. When an alternative does not exist, we try to build one. + +**Rejecting lock-in is not enough. We must make leaving possible.** + +## 06 — Technology belongs to its users + +People who buy devices should be able to repair, maintain, modify, and — where technically feasible — install alternative operating systems on them. We defend the right to repair, open standards, and the ability to export personal data. + +We reject forced obsolescence and dependence on a single vendor. + +**If you cannot leave, you are not truly free to choose.** + +## 07 — Power must be accountable + +We do not reject every hierarchy. Expertise, coordination, and responsibility can require different roles. But no hierarchy is legitimate merely because it exists. + +Decision-makers must explain their choices, accept criticism, and answer for the consequences. Dissent is not automatically insubordination. + +**Authority without accountability is abuse.** + +## 08 — Work is not servitude + +We believe in doing good work, professionalism, and the freedom to build businesses. But a paycheck does not buy a person's dignity. We reject coercion, humiliation, imposed unpaid labor, and the demand for constant availability as proof of loyalty. + +We also believe collaborators have obligations: honor commitments, recognize others' contributions, and do not exploit trust. Responsibilities are not symmetrical: those with greater power have greater duties. + +**Respect cannot be bought with a paycheck or demanded through a title.** + +## 09 — Free enterprise, not monopolies + +We do not see profit as a sin or business as an enemy. We defend the freedom to innovate, compete, and earn fair compensation. + +We oppose monopolies, entrenched privilege, and practices that undermine choice, competition, or interoperability. Success does not grant the right to trap customers, workers, or competitors. + +**One person's economic freedom must not erase another's.** + +## 10 — Knowledge grows when shared + +Hacker culture means curiosity, study, experimentation, and sharing. We judge ideas by their merits and people by their actions, not credentials, rank, or allegiance. + +We document mistakes, publish solutions where we can, and make room for learners. Reasoned dissent is a contribution, not a threat. + +**We don't demand obedience. We ask for critical thinking.** + +## 11 — Independent, not indifferent + +We owe no unconditional loyalty to parties, companies, leaders, communities, or ideologies. We can share a cause and still criticize those who claim to represent it. No idea, including this manifesto, is beyond discussion. + +Changing your mind when the evidence changes is not weakness. + +**Integrity matters more than belonging.** + +## 12 — Building is a form of resistance + +Pointing out what is broken is not enough. We want to write code, maintain services, support independent projects, publish documentation, and make tools that return control to people. + +An alternative nobody can use is not enough. Freedom takes maintenance, time, people, and infrastructure. + +**Build, don't just complain.** + +## 13 — Your faith is none of our business + +kmalloc.org takes no religious position. We do not ask anyone's faith to open an account, use the mail, the repositories, or any other service. Believers of any religion, agnostics, and atheists have the same rights and the same duties. + +As with political opinions in point 11, we ask for neither allegiance nor renunciation: everyone brings their own convictions here, without having to prove them and without being able to impose them on others. + +**You come in with your ideas, not with your faith.** + +## 14 — Meaning doesn't need a god + +For us, no religion is necessary to live well, to have a solid ethics, or to find meaning in things. Empathy, curiosity, responsibility toward others, and critical thinking are enough, and none of them need a higher authority or a sacred text to exist. + +This is not a judgment on those who believe: it is a conviction, open to discussion like everything else in this text. + +**We don't need a god to be better people.** + +## Our commitments + +At kmalloc.org, these principles must hold in practice: + +- No advertising trackers or behavioral advertising. +- No selling or monetizing visitors' personal data. +- Minimal collection of technical data, with explicit purposes and retention periods. +- A public table, service by service: what the administrator can see, what is not end-to-end encrypted, and how long data is kept. +- No mandatory Big Tech account to read public content. +- A preference for free software, open standards, and independent services wherever practical. +- Transparency about dependencies, funding, conflicts of interest, and the limits of our choices. +- A public page on funding: what the server costs, who pays for it, and how to contribute. Donations give no power over decisions. +- Respect for contributors: no discrimination, including on religious grounds, intimidation, or abuse of power. +- Public criteria for accounts: sharing these principles and respecting the rules of use on the [Services](/services.html#rules) page. A written reason and an appeal for every refusal or closure. +- A public policy on requests from authorities: we act only on valid legal requests, we tell the person concerned when the law allows it, and we publish a periodic transparency report, even when there were no requests. +- Two public addresses, one for security and one for abuse. Abuse reports do not need GPG. Security reports follow a public responsible disclosure policy. +- If kmalloc.org shuts down: 90 days' notice and an export of account holders' data (mail, repositories, contacts). + +## Epilogue — Free your mind + +We don't want an Internet that knows everything about us. We want an Internet that leaves us free. + +We don't want work that buys our dignity. We want respect, competence, and accountability. + +We don't want technology that decides for us. We want to understand it, change it, and be able to leave it behind. + +Freedom does not begin with a product, an operating system, or a platform. It begins with thinking for yourself — and continues through the choices you are willing to defend. + +**Free Your Mind… and Your Ass Will Follow.** + +*kmalloc.org — Allocate freedom.* + +## About this text + +Every version of this manifesto has a date. A public page lists every change. + +Proposals for changes go in a public issue on the [site repository](https://git.kmalloc.org/squid/kmalloc.org/issues). Today the author decides what goes in. + +If the versions differ, the English text prevails. + +This text is released under the CC BY-SA 4.0 license. diff --git a/MANIFESTO.es.md b/MANIFESTO.es.md new file mode 100644 index 0000000..7781fee --- /dev/null +++ b/MANIFESTO.es.md @@ -0,0 +1,140 @@ +# kmalloc.org: Manifiesto + +> **Free Your Mind… and Your Ass Will Follow.** +> Funkadelic, *Free Your Mind… and Your Ass Will Follow* (1970) + +**Allocate freedom.** + +## Preámbulo: No pedimos permiso para pensar + +kmalloc.org nace de una convicción sencilla: la libertad no puede ser un servicio por suscripción, una concesión del poder ni una casilla escondida al final de un contrato. + +Somos hackers por cultura, antifascistas por convicción, libertarios en nuestra búsqueda de autonomía e independientes en nuestras decisiones. Defendemos el software libre, un Internet abierto, la privacidad y la dignidad en el trabajo. Creemos en la empresa y en la iniciativa individual, no en el abuso, el monopolio ni la explotación. + +No buscamos seguidores. Queremos personas capaces de cuestionar incluso lo que escribimos aquí. + +## 01. Antifascistas. Sin ambigüedades. + +Rechazamos el fascismo, el racismo, la discriminación, el culto al líder y el autoritarismo. Nadie debería perder su dignidad en nombre de la fuerza, la identidad o la obediencia. + +Para nosotros, el antifascismo no es un adorno. Significa defender activamente el pluralismo, la disidencia y la igualdad de derechos. + +**Ser independientes no significa ser neutrales ante la opresión.** + +## 02. Internet debe seguir siendo libre + +Internet no pertenece a las plataformas. Defendemos una red abierta, accesible, interoperable y descentralizada, construida sobre protocolos que cualquiera pueda implementar. + +Nos oponemos a la censura arbitraria, la vigilancia masiva, los jardines vallados y las dependencias artificiales. La neutralidad de la red y la posibilidad de publicar, comunicarse y migrar sin permisos arbitrarios son condiciones de la libertad digital. + +**Internet no es un centro comercial con un único dueño.** + +## 03. Privacy first. Always. + +La privacidad es un derecho, no un privilegio ni una función premium. No necesitamos tener algo que ocultar para exigir que nuestras comunicaciones y nuestros hábitos sigan siendo privados. + +Apoyamos el cifrado robusto, la minimización de datos, el derecho al anonimato y la posibilidad de usar servicios sin ser rastreados de forma sistemática. + +La seguridad no puede ser una excusa universal para la vigilancia indiscriminada. + +**Quien recoge nuestros datos es quien debe justificar por qué los necesita.** + +## 04. Nuestros datos no son su modelo de negocio + +Cuestionamos el modelo de negocio de muchas grandes plataformas tecnológicas que basan parte de su poder en la recopilación extensiva de datos, la elaboración de perfiles y la publicidad conductual. Rechazamos las interfaces manipuladoras, el consentimiento opaco y las prácticas que hacen difícil escapar del rastreo. + +No afirmamos que todo uso de datos por parte de cualquier gran empresa sea ilícito. Rechazamos la idea de que la vigilancia comercial sea inevitable, o de que las personas usuarias deban aceptarla como precio para participar en la vida digital. + +Las empresas pueden crear valor sin convertir cada interacción en un expediente personal. + +**Your business model is not our consent.** + +## 05. El software libre es libertad en la práctica + +Defendemos la libertad de ejecutar, estudiar, modificar y compartir el software. El código es conocimiento, y quien controla el código tiene poder sobre lo que los demás pueden hacer. + +Preferimos alternativas libres, abiertas y auditables. No exigimos pureza ideológica: queremos herramientas que la gente pueda usar de verdad, documentar, mantener y sostener. Cuando una alternativa no existe, intentamos construirla. + +**No basta con rechazar el lock-in. Hay que hacer posible salir de él.** + +## 06. La tecnología pertenece a quien la usa + +Quien compra un dispositivo debería poder repararlo, mantenerlo, modificarlo y, cuando sea técnicamente posible, instalar en él un sistema operativo alternativo. Defendemos el derecho a reparar, los estándares abiertos y la posibilidad de exportar los propios datos. + +Rechazamos la obsolescencia impuesta y la dependencia de un único proveedor. + +**Si no puedes irte, no eres realmente libre de elegir.** + +## 07. El poder debe rendir cuentas + +No rechazamos toda jerarquía. La competencia, la coordinación y la responsabilidad pueden requerir roles distintos. Pero ninguna jerarquía es legítima solo porque existe. + +Quien decide debe explicar sus decisiones, aceptar las críticas y responder por las consecuencias. Disentir no es, automáticamente, insubordinación. + +**La autoridad sin rendición de cuentas es abuso.** + +## 08. El trabajo no es servidumbre + +Creemos en el trabajo bien hecho, en la profesionalidad y en la libertad de crear empresas. Pero un salario no compra la dignidad de una persona. Rechazamos la coacción, la humillación, el trabajo no remunerado impuesto y la exigencia de disponibilidad permanente como prueba de lealtad. + +También creemos que quienes colaboran tienen obligaciones: cumplir los compromisos, reconocer la contribución de los demás y no aprovecharse de la confianza recibida. Las responsabilidades no son simétricas: quien tiene más poder tiene más deberes. + +**El respeto no se compra con un salario ni se exige con un título.** + +## 09. Libre empresa, no monopolios + +No vemos el beneficio como un pecado ni la empresa como un enemigo. Defendemos la libertad de innovar, competir y obtener una remuneración justa. + +Nos oponemos a los monopolios, a los privilegios consolidados y a las prácticas que socavan la elección, la competencia o la interoperabilidad. El éxito no da derecho a atrapar a clientes, trabajadores o competidores. + +**La libertad económica de alguien no debe borrar la de los demás.** + +## 10. El conocimiento crece cuando se comparte + +La cultura hacker es curiosidad, estudio, experimentación e intercambio. Juzgamos las ideas por su calidad y a las personas por sus actos, no por sus títulos, su rango o sus pertenencias. + +Documentamos los errores, publicamos soluciones cuando podemos y dejamos espacio a quienes están aprendiendo. La disidencia razonada es una contribución, no una amenaza. + +**No exigimos obediencia. Pedimos pensamiento crítico.** + +## 11. Independientes, no indiferentes + +No debemos lealtad incondicional a partidos, empresas, líderes, comunidades ni ideologías. Podemos compartir una causa y aun así criticar a quienes dicen representarla. Ninguna idea, ni siquiera este manifiesto, está por encima de la discusión. + +Cambiar de opinión cuando cambian las pruebas no es debilidad. + +**La integridad importa más que la pertenencia.** + +## 12. Construir es una forma de resistencia + +No basta con señalar lo que no funciona. Queremos escribir código, mantener servicios, apoyar proyectos independientes, publicar documentación y crear herramientas que devuelvan el control a las personas. + +Una alternativa que nadie puede usar no es suficiente. La libertad requiere mantenimiento, tiempo, personas e infraestructura. + +**Build, don't just complain.** + +## Nuestros compromisos + +En kmalloc.org, estos principios tienen que cumplirse en la práctica: + +- Sin rastreadores publicitarios ni publicidad conductual. +- Sin venta ni monetización de los datos personales de quienes nos visitan. +- Recopilación mínima de datos técnicos, con finalidades y plazos de conservación explícitos. +- Ninguna cuenta obligatoria de las Big Tech para leer contenido público. +- Preferencia por el software libre, los estándares abiertos y los servicios independientes, siempre que sea viable. +- Transparencia sobre dependencias, financiación, conflictos de interés y los límites de nuestras decisiones. +- Respeto por quienes participan: sin discriminación, intimidación ni abuso de poder. + +## Epílogo: Libera tu mente + +No queremos un Internet que lo sepa todo de nosotros. Queremos un Internet que nos deje ser libres. + +No queremos un trabajo que compre nuestra dignidad. Queremos respeto, competencia y rendición de cuentas. + +No queremos una tecnología que decida por nosotros. Queremos entenderla, cambiarla y poder dejarla atrás. + +La libertad no empieza con un producto, un sistema operativo o una plataforma. Empieza por pensar con la propia cabeza, y continúa en las decisiones concretas que estamos dispuestos a defender. + +**Free Your Mind… and Your Ass Will Follow.** + +*kmalloc.org: Allocate freedom.* diff --git a/MANIFESTO.fr.md b/MANIFESTO.fr.md new file mode 100644 index 0000000..beb8058 --- /dev/null +++ b/MANIFESTO.fr.md @@ -0,0 +1,140 @@ +# kmalloc.org: Manifeste + +> **Free Your Mind… and Your Ass Will Follow.** +> Funkadelic, *Free Your Mind… and Your Ass Will Follow* (1970) + +**Allocate freedom.** + +## Préambule: Nous ne demandons pas la permission de penser + +kmalloc.org part d'une conviction simple: la liberté ne peut pas être un service par abonnement, une faveur accordée par le pouvoir ou une case à cocher cachée au bas d'un contrat. + +Nous sommes hackers par culture, antifascistes par conviction, libertaires dans notre quête d'autonomie et indépendants dans nos choix. Nous défendons le logiciel libre, un Internet ouvert, la vie privée et la dignité au travail. Nous croyons en l'entreprise et en l'initiative individuelle, pas en l'abus, le monopole ou l'exploitation. + +Nous ne cherchons pas des adeptes. Nous voulons des personnes capables de remettre en question même ce qui est écrit ici. + +## 01. Antifascistes. Sans ambiguïté. + +Nous rejetons le fascisme, le racisme, les discriminations, le culte du chef et l'autoritarisme. Personne ne devrait être privé de sa dignité au nom de la force, de l'identité ou de l'obéissance. + +Pour nous, l'antifascisme n'est pas un ornement. C'est la défense concrète du pluralisme, de la dissidence et de l'égalité des droits. + +**Être indépendants ne veut pas dire rester neutres face à l'oppression.** + +## 02. Internet doit rester libre + +Internet n'appartient pas aux plateformes. Nous défendons un réseau ouvert, accessible, interopérable et décentralisé, fondé sur des protocoles que tout le monde peut implémenter. + +Nous nous opposons à la censure arbitraire, à la surveillance de masse, aux jardins clos et aux dépendances fabriquées. La neutralité du net et la possibilité de publier, de communiquer et de migrer sans autorisation arbitraire sont des conditions de la liberté numérique. + +**Internet n'est pas un centre commercial avec un seul propriétaire.** + +## 03. Privacy first. Always. + +La vie privée est un droit, pas un privilège ni une fonctionnalité premium. Nous n'avons pas besoin d'avoir quelque chose à cacher pour exiger que nos communications et nos habitudes restent privées. + +Nous soutenons le chiffrement fort, la minimisation des données, le droit à l'anonymat et la possibilité d'utiliser des services sans être pistés systématiquement. + +La sécurité ne peut pas servir d'excuse universelle à une surveillance indiscriminée. + +**C'est à celles et ceux qui collectent nos données d'en justifier la nécessité.** + +## 04. Nos données ne sont pas votre modèle économique + +Nous contestons le modèle économique de nombreuses grandes plateformes technologiques qui tirent une partie de leur pouvoir de la collecte massive de données, du profilage et de la publicité comportementale. Nous rejetons les interfaces manipulatrices, les consentements opaques et les pratiques qui rendent le pistage difficile à éviter. + +Nous ne prétendons pas que toute utilisation des données par toute grande entreprise est illégale. Nous rejetons l'idée que la surveillance commerciale serait inévitable, ou que les personnes devraient l'accepter pour participer à la vie numérique. + +Les entreprises peuvent créer de la valeur sans transformer chaque interaction en dossier personnel. + +**Your business model is not our consent.** + +## 05. Le logiciel libre, c'est la liberté en pratique + +Nous défendons la liberté d'exécuter, d'étudier, de modifier et de partager les logiciels. Le code est un savoir, et qui contrôle le code exerce un pouvoir sur ce que les autres peuvent faire. + +Nous préférons les alternatives libres, ouvertes et vérifiables. Nous n'exigeons pas de pureté idéologique: nous voulons des outils que les gens peuvent réellement utiliser, documenter, maintenir et faire vivre. Quand une alternative n'existe pas, nous essayons de la construire. + +**Refuser le lock-in ne suffit pas. Il faut rendre possible d'en sortir.** + +## 06. La technologie appartient à celles et ceux qui l'utilisent + +Toute personne qui achète un appareil devrait pouvoir le réparer, l'entretenir, le modifier et, lorsque c'est techniquement possible, y installer un système d'exploitation alternatif. Nous défendons le droit à la réparation, les standards ouverts et la possibilité d'exporter ses données personnelles. + +Nous rejetons l'obsolescence imposée et la dépendance à un fournisseur unique. + +**Si vous ne pouvez pas partir, vous n'êtes pas vraiment libres de choisir.** + +## 07. Le pouvoir doit rendre des comptes + +Nous ne rejetons pas toute hiérarchie. La compétence, la coordination et la responsabilité peuvent exiger des rôles différents. Mais aucune hiérarchie n'est légitime du seul fait qu'elle existe. + +Celles et ceux qui décident doivent expliquer leurs choix, accepter la critique et répondre des conséquences. Le désaccord n'est pas automatiquement de l'insubordination. + +**L'autorité sans responsabilité est un abus.** + +## 08. Le travail n'est pas une servitude + +Nous croyons au travail bien fait, au professionnalisme et à la liberté de créer des entreprises. Mais un salaire n'achète pas la dignité d'une personne. Nous rejetons le chantage, l'humiliation, le travail non rémunéré imposé et la disponibilité permanente exigée comme preuve de loyauté. + +Nous croyons aussi que celles et ceux qui collaborent ont des obligations: tenir leurs engagements, reconnaître la contribution des autres et ne pas abuser de la confiance reçue. Les responsabilités ne sont pas symétriques: qui a plus de pouvoir a plus de devoirs. + +**Le respect ne s'achète pas avec un salaire et ne s'exige pas avec un titre.** + +## 09. Libre entreprise, pas monopoles + +Nous ne voyons pas le profit comme une faute ni l'entreprise comme un ennemi. Nous défendons la liberté d'innover, de se faire concurrence et d'obtenir une juste rémunération. + +Nous nous opposons aux monopoles, aux rentes de situation et aux pratiques qui entravent le choix, la concurrence ou l'interopérabilité. Le succès ne donne pas le droit d'enfermer les clients, les travailleurs ou les concurrents. + +**La liberté économique des uns ne doit pas effacer celle des autres.** + +## 10. Le savoir grandit quand il circule + +La culture hacker, c'est la curiosité, l'étude, l'expérimentation et le partage. Nous jugeons les idées sur leur valeur et les personnes sur leurs actes, pas sur leurs titres, leur rang ou leurs appartenances. + +Nous documentons nos erreurs, publions des solutions quand nous le pouvons et laissons de la place à celles et ceux qui apprennent. Le désaccord argumenté est une contribution, pas une menace. + +**Nous n'exigeons pas l'obéissance. Nous demandons l'esprit critique.** + +## 11. Indépendants, pas indifférents + +Nous ne devons aucune loyauté inconditionnelle à des partis, des entreprises, des leaders, des communautés ou des idéologies. Nous pouvons partager une cause et critiquer malgré tout celles et ceux qui prétendent la représenter. Aucune idée, pas même ce manifeste, n'échappe à la discussion. + +Changer d'avis quand les preuves changent n'est pas une faiblesse. + +**L'intégrité compte plus que l'appartenance.** + +## 12. Construire est une forme de résistance + +Dénoncer ce qui ne fonctionne pas ne suffit pas. Nous voulons écrire du code, maintenir des services, soutenir des projets indépendants, publier de la documentation et créer des outils qui rendent le contrôle aux personnes. + +Une alternative que personne ne parvient à utiliser ne suffit pas. La liberté demande de l'entretien, du temps, des personnes et des infrastructures. + +**Build, don't just complain.** + +## Nos engagements + +Chez kmalloc.org, ces principes doivent aussi valoir en pratique: + +- Aucun traceur publicitaire ni publicité comportementale. +- Aucune vente ni monétisation des données personnelles des visiteurs. +- Collecte minimale des données techniques, avec des finalités et des durées de conservation explicites. +- Aucun compte Big Tech obligatoire pour lire les contenus publics. +- Une préférence pour le logiciel libre, les standards ouverts et les services indépendants, chaque fois que c'est possible. +- Transparence sur les dépendances, le financement, les conflits d'intérêts et les limites de nos choix. +- Respect envers les personnes qui contribuent: aucune discrimination, intimidation ni abus de pouvoir. + +## Épilogue: Libère ton esprit + +Nous ne voulons pas d'un Internet qui sait tout de nous. Nous voulons un Internet qui nous laisse libres. + +Nous ne voulons pas d'un travail qui achète notre dignité. Nous voulons du respect, de la compétence et de la responsabilité. + +Nous ne voulons pas d'une technologie qui décide à notre place. Nous voulons la comprendre, la modifier et pouvoir la quitter. + +La liberté ne commence pas avec un produit, un système d'exploitation ou une plateforme. Elle commence par la capacité de penser par soi-même, et se poursuit dans les choix concrets que nous sommes prêts à défendre. + +**Free Your Mind… and Your Ass Will Follow.** + +*kmalloc.org: Allocate freedom.* diff --git a/MANIFESTO.it.md b/MANIFESTO.it.md new file mode 100644 index 0000000..b332be5 --- /dev/null +++ b/MANIFESTO.it.md @@ -0,0 +1,174 @@ +# kmalloc.org — Manifesto + +> **Free Your Mind… and Your Ass Will Follow.** +> — Funkadelic, *Free Your Mind… and Your Ass Will Follow* (1970) + +**Allocate freedom.** + +## Preambolo — Non chiediamo il permesso di pensare + +kmalloc.org nasce da una convinzione semplice: la libertà non può essere un servizio in abbonamento, una concessione del potere o una casella da spuntare in fondo a un contratto. + +Siamo hacker nella cultura, antifascisti nei valori, libertari nell'aspirazione all'autonomia e indipendenti nelle scelte. Difendiamo il software libero, un Internet aperto, la privacy e la dignità nel lavoro. Crediamo nell'impresa e nell'iniziativa individuale, non nell'abuso, nel monopolio o nello sfruttamento. + +Oggi "noi" vuol dire una persona sola. Resta "noi" perché è aperto: altre persone possono unirsi accettando questo manifesto. + +Non cerchiamo seguaci. Vogliamo persone capaci di mettere in discussione anche ciò che scriviamo qui. + +## 01 — Antifascisti. Senza ambiguità. + +Rifiutiamo il fascismo, il razzismo, la discriminazione, il culto del capo e l'autoritarismo. Nessuno dovrebbe essere privato della propria dignità in nome della forza, dell'identità o dell'obbedienza. + +L'antifascismo per noi non è un ornamento: è la difesa concreta del pluralismo, del dissenso e dell'uguaglianza dei diritti. + +**Indipendenti non significa neutrali davanti ai soprusi.** + +## 02 — Internet deve restare libero + +Internet non è proprietà delle piattaforme. Difendiamo una rete aperta, accessibile, interoperabile e decentralizzata, fondata su protocolli che chiunque possa implementare. + +Ci opponiamo alla censura arbitraria, alla sorveglianza di massa, ai giardini recintati e alle dipendenze artificiali. La neutralità della rete e la possibilità di pubblicare, comunicare e migrare senza autorizzazioni arbitrarie sono condizioni della libertà digitale. + +**Internet non è un centro commerciale con un solo proprietario.** + +## 03 — Privacy first. Always. + +La privacy è un diritto, non un privilegio e nemmeno una funzione premium. Non dobbiamo avere qualcosa da nascondere per pretendere che le nostre comunicazioni e abitudini rimangano riservate. + +Sosteniamo la crittografia robusta, la minimizzazione dei dati, il diritto all'anonimato e la possibilità di utilizzare servizi senza essere tracciati sistematicamente. + +La sicurezza non può essere una scusa universale per la sorveglianza indiscriminata. + +**È chi raccoglie i nostri dati che deve giustificarne la necessità.** + +## 04 — I nostri dati non sono il vostro modello di business + +Contestiamo il modello di molte grandi piattaforme tecnologiche che fonda parte del proprio potere sulla raccolta estesa di dati, sulla profilazione e sulla pubblicità comportamentale. Rifiutiamo interfacce manipolative, consensi opachi e pratiche che rendono difficile sottrarsi al tracciamento. + +Non sosteniamo che ogni uso dei dati da parte di ogni grande azienda sia illecito: contestiamo l'idea che la sorveglianza commerciale sia inevitabile e che l'utente debba pagarne il prezzo per partecipare alla vita digitale. + +Le imprese possono creare valore senza trasformare ogni interazione in un dossier personale. + +**Your business model is not our consent.** + +## 05 — Il software libero è libertà concreta + +Difendiamo la libertà di eseguire, studiare, modificare e condividere il software. Il codice è conoscenza e chi controlla il codice esercita potere sulle possibilità degli altri. + +Preferiamo alternative libere, aperte e verificabili. Non chiediamo purezza ideologica: vogliamo progetti realmente utilizzabili, documentati, mantenuti e sostenibili. Quando un'alternativa non esiste, proviamo a costruirla. + +**Non basta rifiutare il lock-in. Bisogna rendere possibile uscirne.** + +## 06 — La tecnologia appartiene a chi la usa + +Chi acquista un dispositivo dovrebbe poterlo riparare, mantenerlo, modificare e — dove tecnicamente possibile — installare un sistema alternativo. Difendiamo il diritto alla riparazione, gli standard aperti e la possibilità di esportare i propri dati. + +Rifiutiamo l'obsolescenza imposta e la dipendenza da un singolo fornitore. + +**Se non puoi andartene, non sei davvero libero di scegliere.** + +## 07 — Il potere deve rispondere delle proprie azioni + +Non rifiutiamo ogni gerarchia. Competenza, coordinamento e responsabilità possono richiedere ruoli diversi. Ma nessuna gerarchia è legittima solo perché esiste. + +Chi decide deve spiegare le proprie scelte, accettare le critiche e rispondere delle conseguenze. Il dissenso non è insubordinazione automatica. + +**L'autorità senza responsabilità è abuso.** + +## 08 — Il lavoro non è servitù + +Crediamo nel lavoro ben fatto, nella professionalità e nel diritto di creare imprese. Uno stipendio, però, non compra la dignità di una persona. Rifiutiamo ricatti, umiliazioni, lavoro non retribuito imposto e disponibilità permanente pretesa come prova di lealtà. + +Crediamo anche nella correttezza di chi collabora: rispettare gli impegni, riconoscere il contributo degli altri e non approfittarsi della fiducia ricevuta. Le responsabilità non sono identiche: chi ha più potere ha maggiori obblighi. + +**Il rispetto non si compra con uno stipendio e non si pretende con un titolo.** + +## 09 — Libera impresa, non monopoli + +Non consideriamo il profitto una colpa né l'impresa un nemico. Difendiamo la possibilità di innovare, competere e ottenere un giusto compenso. + +Contestiamo monopoli, rendite di posizione e pratiche che impediscono scelta, concorrenza o interoperabilità. Il successo non autorizza a imprigionare clienti, lavoratori o concorrenti. + +**La libertà economica di qualcuno non può cancellare quella degli altri.** + +## 10 — La conoscenza cresce quando circola + +La cultura hacker è curiosità, studio, sperimentazione e condivisione. Valutiamo le idee per la loro qualità e le persone per il loro comportamento, non per titoli, gerarchie o appartenenze. + +Documentiamo gli errori, rendiamo pubbliche le soluzioni quando possiamo e lasciamo spazio a chi sta imparando. Il dissenso ragionato è un contributo, non una minaccia. + +**Non chiediamo obbedienza. Chiediamo pensiero critico.** + +## 11 — Indipendenti, non indifferenti + +Non dobbiamo fedeltà incondizionata a partiti, aziende, leader, comunità o ideologie. Possiamo condividere una causa e criticare chi dice di rappresentarla. Nessuna idea, nemmeno questo manifesto, è immune dalla discussione. + +Cambiare opinione davanti a prove migliori non è debolezza. + +**L'integrità conta più dell'appartenenza.** + +## 12 — Costruire è una forma di resistenza + +Non ci basta denunciare ciò che non funziona. Vogliamo scrivere codice, mantenere servizi, sostenere progetti indipendenti, produrre documentazione e rendere accessibili strumenti che restituiscano controllo alle persone. + +Un'alternativa che nessuno riesce a usare non basta. La libertà richiede manutenzione, tempo, persone e infrastrutture. + +**Build, don't just complain.** + +## 13 — La tua fede non ci riguarda + +kmalloc.org non prende posizione religiosa. Non chiediamo la fede di nessuno per aprire un account, usare la posta, i repository o qualsiasi altro servizio. Credenti di qualunque religione, agnostici e atei hanno gli stessi diritti e gli stessi doveri. + +Come per le opinioni politiche al punto 11, non chiediamo fedeltà né rinuncia: ognuno porta qui le proprie convinzioni, senza doverle dimostrare e senza poterle imporre agli altri. + +**Qui si entra con le proprie idee, non con la propria fede.** + +## 14 — Il senso non ha bisogno di un dio + +Per noi nessuna religione è necessaria per vivere bene, avere un'etica solida o trovare un senso alle cose. Bastano l'empatia, la curiosità, la responsabilità verso gli altri e il pensiero critico, e nessuno di questi ha bisogno di un'autorità superiore o di un testo sacro per esistere. + +Non è un giudizio su chi crede: è una convinzione, aperta alla discussione come tutto il resto di questo testo. + +**Non ci serve un dio per essere persone migliori.** + +## I nostri impegni + +Per kmalloc.org questi principi devono valere anche nella pratica: + +- Niente tracker pubblicitari o pubblicità comportamentale. +- Nessuna vendita o monetizzazione dei dati personali dei visitatori. +- Raccolta minima dei dati tecnici, con finalità e tempi di conservazione espliciti. +- Una tabella pubblica, servizio per servizio: cosa vede l'amministratore, cosa non è cifrato da capo a capo e per quanto restano i dati. +- Nessun account Big Tech obbligatorio per leggere i contenuti pubblici. +- Preferenza per software libero, standard aperti e servizi indipendenti, quando praticabile. +- Trasparenza su dipendenze, finanziamenti, conflitti di interesse e limiti delle nostre scelte. +- Una pagina pubblica sui fondi: quanto costa il server, chi lo paga e come contribuire. Le donazioni non danno potere decisionale. +- Rispetto per chi partecipa: niente discriminazioni, anche per motivi religiosi, intimidazioni o abusi di potere. +- Criteri pubblici per gli account: condividere questi principi e rispettare le regole d'uso della pagina [Servizi](/it/servizi.html#rules). Un motivo scritto e un ricorso per ogni rifiuto o chiusura. +- Una politica pubblica sulle richieste delle autorità: diamo seguito solo a richieste legali valide, informiamo la persona interessata quando la legge lo permette e pubblichiamo un report di trasparenza periodico, anche quando le richieste sono zero. +- Due indirizzi pubblici, uno per la sicurezza e uno per gli abusi. Le segnalazioni di abuso non richiedono GPG. Le segnalazioni di sicurezza seguono una politica pubblica di divulgazione responsabile. +- Se kmalloc.org chiude: 90 giorni di preavviso ed esportazione dei dati di chi ha un account (posta, repository, contatti). + +## Epilogo — Libera la mente + +Non vogliamo un Internet che sappia tutto di noi. Vogliamo un Internet che ci lasci liberi. + +Non vogliamo un lavoro che compri la nostra dignità. Vogliamo rispetto, competenza e responsabilità. + +Non vogliamo una tecnologia che decida al posto nostro. Vogliamo capirla, modificarla e poterla abbandonare. + +La libertà non comincia da un prodotto, un sistema operativo o una piattaforma. Comincia dalla capacità di pensare con la propria testa — e continua nelle scelte concrete che siamo disposti a difendere. + +**Free Your Mind… and Your Ass Will Follow.** + +*kmalloc.org — Allocate freedom.* + +## Su questo testo + +Ogni versione di questo manifesto ha una data. Una pagina pubblica elenca ogni modifica. + +Le proposte di modifica vanno in una issue pubblica sul [repository del sito](https://git.kmalloc.org/squid/kmalloc.org/issues). Oggi decide l'autore che cosa entra. + +Se le versioni differiscono, fa fede il testo inglese. + +Questo testo è rilasciato con licenza CC BY-SA 4.0. diff --git a/README.md b/README.md index 4100a0f..ee15469 100644 --- a/README.md +++ b/README.md @@ -1,73 +1,59 @@ # kmalloc.org -Sources of the kmalloc.org website: plain static HTML, no JavaScript, valid HTML5 and CSS. The site is built with [motorino](https://git.kmalloc.org/squid/motorino), the generator I wrote for it. +Sources of the kmalloc.org website: plain static HTML, no JavaScript, valid HTML5 and CSS. ## Layout -- `content//` holds the pages as Markdown, one file per page and language (`en`, `it`, `es`, `de`, `fr`). `index.md` is the home of a folder. The file path is the address: `content/it/servizi.md` is `/it/servizi.html`. -- `news/` holds the news, written in English only: one `name.md` file each. -- `site.json` holds what every language shares: the language list, the contact and security addresses, the Bitcoin and shop addresses, the manifesto version and date, and the assets that are copied as they are. -- `lang/.json` holds the interface strings of one language: the menu, the footer and the other short texts. -- `templates/` holds the chrome (`base.html`, `header.html`, `footer.html`), the layouts in `templates/pages/` (`page`, `bare`, `manifesto`), the news post (`post.html`) and the category page (`category.html`). +- `build.py` generates the site: `python3 build.py [output-dir]` (default `preview/`). Standard library only. +- `site.json` holds what every language shares: the language list, contact address, Bitcoin address, shop address, manifesto version, services and people. +- `lang/.json` holds every text of one language (`en`, `it`, `es`, `de`, `fr`): the menu, the footer and one entry per page. The texts are plain text and the build escapes them. +- `templates/` holds the chrome (`base.html`, `header.html`, `footer.html`), one body per page type in `templates/pages/` and repeated blocks in `templates/parts/`. - `static/style.css` is the one stylesheet, inlined into every page. +- `MANIFESTO..md` are the manifesto texts. English and Italian are at version 1.2 (`manifesto_version` and `manifesto_date` in `site.json`); Spanish, German and French are machine translations of version 1.0 (overridden in their `lang/.json`) and show a note that the English text prevails. Every version is listed on the manifesto history page. +- `news/` holds the news posts, written in English only. - `badges/` holds the official W3C badges, served from our own site. - `logo/` holds the shrike logo: SVG and PNG exports (`og-1200x630.png` is the preview image of shared links), `build_logo.py`, the original PNG and the favicons in `logo/web/`. -- `.motorino-version` pins the version of motorino (line 1) and the SHA-256 of its `linux/amd64` binary (line 2). -## Writing a page +## Languages -Every page starts with a header of `Key: value` lines ended by a line with a single `-`, then Markdown. Raw HTML is allowed, for the few things Markdown cannot say (the data table, the hero of the home page). +A new language is one file, `lang/.json`, plus its name in `site.json` and a `MANIFESTO..md`. A language lists only the pages it has: Spanish, German and French have the manifesto only, so they use the short header (`"header": "header-min"`) and the other pages are not built for them. The language links in the header list every other language that has the same page. - Title: Services - ID: services - Description: The services on kmalloc.org and how to get an account. - Layout: bare - - - # Services +A page entry in `lang/.json` looks like this: - Write to **{{contact_shown}}**. + "people": { + "path": "/people.html", + "title": "kmalloc.org: People", + "description": "The people behind kmalloc.org.", + "intro": "Who is behind kmalloc.org.", + "bios": { "squid": "..." } + } - ## Get an account {#account} - -`ID` is the same in every language: it links the translations. `Layout` is `page` (the title as a heading, then the body), `bare` (the body only, which writes its own `# heading`) or `manifesto`. A heading can set its id with `{#id}`; the others get one from their words. `{{name}}` is replaced by a string of `site.json` or of the language file, and an unknown one stops the build. `{{news_list}}`, `{{latest_news}}` and `{{categories_list}}` stand alone in a paragraph and expand to lists. The full list of keys is in the motorino README. - -The English text of the manifesto prevails. English and Italian are updated together when the manifesto changes; Spanish, German and French follow in a batch, translated from the English with the wording of the earlier translation kept where the English did not change, and their `Note` always says which version they translate (it is a machine translation that no native speaker has reviewed). Until a batch is done, a translation may be behind; set `ManifestoVersion` and `ManifestoDate` on it so that the page does not show the current version. - -A new language is one file `lang/.json`, its name in `site.json` and its pages in `content//`. A language lists only the pages it has: Spanish, German and French have the manifesto only, so they use the short header (`"header": "header-min"`). A translation of an older manifesto says which version it translates with `ManifestoVersion` and `ManifestoDate`. +The page types are `home`, `manifesto`, `people`, `services`, `news` and `history` (the manifesto history). A list of plain strings in a page entry becomes `
  • ` items. Placeholders such as `{{intro}}` or `{{url_news}}` in `templates/pages/*.html` are replaced at build time, and an unknown placeholder stops the build. ## News -A news item is a file `news/name.md`: +A post is a Markdown file named `YYYY-MM-DD-slug.md` in `news/`: - Title: Hello from kmalloc.org - Author: squid - Date: 2026-09-18T17:00:45+0200 - Categories: News - Description: One line shown in the list. - - - The text, with a [link](https://kmalloc.org/) and `code`. + --- + title: Hello + summary: One line shown in the list. + --- + Text with a [link](https://kmalloc.org/) and `code`. -It is published at `/news/YYYY/MM/name.html`, with the year and month of `Date`. Every category has a page at `/news/category/.html`. The news index, the latest three news on the home pages and an RSS 2.0 feed (`/news/feed.xml`, the latest 20 news with full text) are built from the files. No em dashes: the build refuses them. The first three news also answer at their old addresses (`/news/status-page.html` and so on) through permanent redirects in the Caddyfile of `shrike-infra`. + ## A heading -## Preview - - motorino build -site . -out preview - cd preview && python3 -m http.server 8197 --bind 127.0.0.1 - -Get the binary of the pinned version from the releases of motorino, or build it from its repository with `make build`. I check the output with the Nu HTML Checker before I push. +The post is published at `/news/slug.html`. News are English only: the pages of the other languages list the same posts and link to them. The news index, the latest three posts on the home pages and an RSS 2.0 feed (`/news/feed.xml`, the latest 20 posts with full text) are built from the files. Every page links the feed in the head and shows the RSS icon in the footer. No em dashes: the build refuses them. ## Indexing -Every page, news item and category page may be indexed. `robots.txt` allows exactly their addresses and blocks the rest (the downloads and the assets). The personal pages under `/~name/` are not built here and carry `noindex`. +Only the home pages and the manifesto pages may be indexed (`INDEXABLE` in `build.py`): they have no robots meta tag and `robots.txt` allows exactly their paths. Every other page has `noindex, nofollow, noarchive` and is blocked in `robots.txt`. ## License -The texts are released under CC BY-SA 4.0, see `LICENSE`. The code and the logo are not covered; the logo pack has its own terms in its README. +The texts are released under CC BY-SA 4.0, see `LICENSE`. The code and the logo are not covered. ## Publishing -Pushing to `main` publishes the site. A post-receive hook in the Forgejo repository touches a trigger file, `deploy-kmalloc-site.path` on the server notices it and runs `deploy-kmalloc-site`. The script builds `main` into a temporary directory with the pinned motorino and mirrors it into the web root. It downloads the binary once, checks it against the hash in `.motorino-version` and keeps it in `/var/cache/kmalloc-deploy`. If the hash or the build is wrong nothing is copied. +Pushing to `main` publishes the site. A post-receive hook in the Forgejo repository touches a trigger file, `deploy-kmalloc-site.path` on the server notices it and runs `deploy-kmalloc-site`, which builds `main` into a temporary directory and mirrors it into the web root. If the build fails nothing is copied. -To move to a new motorino: take the version and the SHA-256 from its release and write them in `.motorino-version`. - -A Forgejo Actions workflow (`.forgejo/workflows/check.yml`) builds the site with the pinned motorino and runs the Nu HTML Checker on every page, on every push to `main` and on every pull request, on the shared runner of git.kmalloc.org. The publishing itself stays the hook on the server. +I check every page with the Nu HTML Checker before pushing. diff --git a/build.py b/build.py new file mode 100644 index 0000000..6c59851 --- /dev/null +++ b/build.py @@ -0,0 +1,444 @@ +#!/usr/bin/env python3 +"""Build the kmalloc.org static site (plain HTML, no JavaScript, standard library only). + +Usage: build.py [output-dir] (default: preview) + +Layout: + site.json what every language shares: languages, contact, Bitcoin address, services, people + lang/.json every text of one language: menu, footer, and one entry per page it has + templates/ page chrome (base, header, footer), page bodies (pages/) and repeated blocks (parts/) + static/style.css the one stylesheet, inlined into every page + MANIFESTO..md the manifesto, one Markdown file per language + news/*.md news posts, English only: YYYY-MM-DD-slug.md, front matter, then Markdown + +To add a language, add lang/.json and list it in site.json. A language needs only the pages it has: +a page that is missing from lang/.json is simply not built, and its language links disappear. +Texts in the JSON files are plain text: the build escapes them. Placeholders {{name}} in the templates are +replaced with values from site.json, the language file and the page; an unknown placeholder stops the build.""" +import html, json, os, re, shutil, sys +from datetime import datetime, timezone +from email.utils import format_datetime +from xml.sax.saxutils import escape as xml_escape + +HERE = os.path.dirname(os.path.abspath(__file__)) +OUT = os.path.abspath(sys.argv[1] if len(sys.argv) > 1 else os.path.join(HERE, "preview")) +NEWS_ON_HOME = 3 +NEWS_IN_FEED = 20 +POST_NAME = re.compile(r"^(\d{4}-\d{2}-\d{2})-([a-z0-9]+(?:-[a-z0-9]+)*)$") + +# Page types: menu entry to highlight and footer lead. The body is templates/pages/.html. +PAGES = { + "home": dict(nav="home", lead="home"), + "manifesto": dict(nav="manifesto", lead="back"), + "people": dict(nav="people", lead="back"), + "services": dict(nav="services", lead="back"), + "news": dict(nav="news", lead="back"), + "history": dict(nav="history", lead="back"), +} +NAV = ("home", "manifesto", "people", "services", "news") +# The pages of the site and the news posts may be indexed by search engines; anything else gets noindex. +INDEXABLE = ("home", "manifesto", "people", "services", "news", "history") +NOINDEX = '\n' + +# Files copied as they are: published name -> source. +ASSETS = { + "favicon.svg": "logo/svg/favicon-auto.svg", + "favicon-auto.svg": "logo/svg/favicon-auto.svg", + "logo-auto.svg": "logo/svg/mark-auto.svg", + "logo-light.svg": "logo/svg/mark-light.svg", + "logo-dark.svg": "logo/svg/mark-dark.svg", + "logo.png": "logo/png/icon-light-512.png", + "icon-512.png": "logo/png/icon-light-512.png", + "favicon.ico": "logo/web/favicon.ico", + "apple-touch-icon.png": "logo/web/apple-touch-icon.png", + "og.png": "logo/png/og-1200x630.png", + "badges/w3c-html5.png": "badges/w3c-html5.png", + "badges/w3c-css.png": "badges/w3c-css.png", + "squid.asc": "static/squid.asc", + "riot_pack.zip": "static/riot_pack.zip", +} + + +def fail(msg): + raise SystemExit(f"build.py: {msg}") + + +def read(*parts): + with open(os.path.join(HERE, *parts), encoding="utf-8") as f: + return f.read() + + +def write(rel, text): + path = os.path.join(OUT, rel) + os.makedirs(os.path.dirname(path), exist_ok=True) + with open(path, "w", encoding="utf-8") as f: + f.write(text) + + +def load_json(*parts): + try: + return json.loads(read(*parts)) + except ValueError as e: + fail(f"{'/'.join(parts)}: {e}") + + +def esc(text): + return html.escape(text, quote=False) + + +def parse(text, name): + """Split 'front matter, then body' into (dict, body).""" + m = re.match(r"---\n(.*?)\n---\n(.*)\Z", text, re.S) + if not m: + fail(f"{name}: missing front matter") + meta = {} + for line in m.group(1).splitlines(): + key, sep, value = line.partition(": ") + if not sep: + fail(f"{name}: bad front matter line {line!r}") + meta[key.strip()] = value.strip() + return meta, m.group(2) + + +def render(text, ctx, name): + def sub(m): + if m.group(1) not in ctx: + fail(f"{name}: unknown placeholder {{{{{m.group(1)}}}}}") + return ctx[m.group(1)] + return re.sub(r"\{\{(\w+)\}\}", sub, text) + + +# ---------------------------------------------------------------- Markdown + +def no_em_dash(md): + """The manifesto sources use em dashes; the site does not: headings 'NN — Title' become 'NN. Title', + 'Word — Title' becomes 'Word: Title', attribution lines lose the dash, parenthetical dashes become commas.""" + md = re.sub(r"^(#+ )(\d\d) — ", r"\1\2. ", md, flags=re.M) + md = re.sub(r"^(#+ [^\d\n][^—\n]*?) — ", r"\1: ", md, flags=re.M) + md = re.sub(r"^> — ", "> ", md, flags=re.M) + for a, b in ((" — where technically feasible — ", ", where technically feasible, "), + (" — dove tecnicamente possibile — ", ", dove tecnicamente possibile, "), + (" — and continues", ", and continues"), + (" — e continua", ", e continua")): + md = md.replace(a, b) + md = md.replace("kmalloc.org — ", "kmalloc.org: ") + assert "—" not in md, [l for l in md.splitlines() if "—" in l] + return md + + +def inline(s): + s = html.escape(s, quote=False) + s = re.sub(r"`([^`]+)`", r"\1", s) + s = re.sub(r"\[([^\]]+)\]\(([^)\s]+)\)", r'\1', s) + s = re.sub(r"\*\*(.+?)\*\*", r"\1", s) + s = re.sub(r"(?\1", s) + return s + + +def slug(heading): + m = re.match(r"(\d\d)\b", heading) + if m: + return m.group(1) + h = heading.lower() + if h.startswith(("preamble", "preambolo", "preámbulo", "präambel", "préambule")): + return "preamble" + if h.startswith(("our commitments", "i nostri impegni", "nuestros compromisos", "unsere verpflichtungen", "nos engagements")): + return "commitments" + if h.startswith(("epilogue", "epilogo", "epílogo", "epilog", "épilogue")): + return "epilogue" + return re.sub(r"[^a-z0-9]+", "-", h).strip("-") + + +def md_to_html(md): + """Headings (##), paragraphs, quotes, bullet lists and inline markup. Returns (title, toc, html).""" + out, toc = [], [] + para, quote, items = [], [], [] + + def flush(): + nonlocal para, quote, items + if para: + out.append("

    \n" + "\n".join(para) + "\n

    \n") + para = [] + if quote: + out.append("
    \n

    \n" + "\n".join(quote) + "\n

    \n
    \n") + quote = [] + if items: + out.append("
      \n" + "\n".join(f"
    • {i}
    • " for i in items) + "\n
    \n") + items = [] + + title = "" + for raw in md.splitlines(): + line = raw.rstrip("\n") + br = line.endswith(" ") + s = line.strip() + if not s: + flush() + continue + if s.startswith("# "): + flush() + title = s[2:] + continue + if s.startswith("## "): + flush() + h = s[3:] + sl = slug(h) + toc.append((sl, h)) + out.append(f'

    {inline(h)}

    \n') + continue + if s.startswith("> "): + if para or items: + flush() + quote.append(inline(s[2:]) + ("
    " if br else "")) + continue + if s.startswith("- "): + if para or quote: + flush() + items.append(inline(s[2:])) + continue + if quote or items: + flush() + para.append(inline(s)) + flush() + return title, toc, "".join(out) + + +# ---------------------------------------------------------------- site model + +def load_posts(): + """News posts from news/*.md (English only).""" + posts = [] + folder = os.path.join(HERE, "news") + for fn in sorted(os.listdir(folder)) if os.path.isdir(folder) else []: + if not fn.endswith(".md"): + continue + m = POST_NAME.match(fn[:-3]) + if not m: + fail(f"news/{fn}: name must be YYYY-MM-DD-slug.md") + src = f"news/{fn}" + meta, text = parse(read("news", fn), src) + if "title" not in meta: + fail(f"{src}: front matter lacks 'title'") + if "\u2014" in text or "\u2014" in meta["title"]: + fail(f"{src}: no em dashes, please") + posts.append(dict(lang="en", kind="post", id="news/" + fn[:-3], date=m.group(1), nav="news", + path=f"/news/{m.group(2)}.html", body=text, src=src, title=meta["title"], + summary=meta.get("summary", ""), description=meta.get("summary") or meta["title"])) + return sorted(posts, key=lambda p: p["date"], reverse=True) + + +def rss(L, site, all_posts): + """RSS 2.0 feed of the news (English only): the latest posts, full text, absolute links.""" + base = site["base_url"] + posts = all_posts[:NEWS_IN_FEED] + + def stamp(d): + return format_datetime(datetime.strptime(d, "%Y-%m-%d").replace(tzinfo=timezone.utc)) + items = [] + for p in posts: + text = md_to_html(p["body"])[2].replace('href="/', f'href="{base}/') + items.append(f""" +{xml_escape(p["title"])} +{base}{p["path"]} +{base}{p["path"]} +{stamp(p["date"])} +{xml_escape(text)} + +""") + built = f"{stamp(posts[0]['date'])}\n" if posts else "" + url = f"{base}{site['news_url']}" + return f""" + + +kmalloc.org: {xml_escape(L["nav"]["news"])} +{url} +{xml_escape(L["news_p"])} +{L["lang"]} +{built} +{"".join(items)} + +""" + + +def retention_row(row, cols): + """One row of the data and retention table. A 'todo' field becomes an HTML comment, never visible text.""" + if "--" in row.get("todo", ""): + fail(f"retention row {row['service']!r}: no '--' inside a TODO comment") + todo = f"\n" if row.get("todo") else "" + cells = "\n".join(f'{esc(row[k])}' for k in ("admin", "not_e2e", "kept")) + return f'{todo}\n{esc(row["service"])}\n{cells}\n' + + +def indexable(p): + """A listed page of the site or a news post.""" + return p["kind"] == "post" or (p["kind"] == "page" and p["id"] in INDEXABLE) + + +def robots_txt(paths): + """Allow the indexable pages (exact paths, '$' anchors the end) and block everything else.""" + allow = [] + for path in paths: + allow.append(f"Allow: {path}$") + if path == "/": + allow.append("Allow: /?lang=en$") # the English home as linked from the other pages + return "User-agent: *\n" + "\n".join(sorted(set(allow))) + "\nDisallow: /\n" + + +def build(): + site = load_json("site.json") + langs_order = site["languages"] + langs = {l: load_json("lang", l + ".json") for l in langs_order} + css = read("static", "style.css").strip("\n") + tpl = {} + for root, _, files in os.walk(os.path.join(HERE, "templates")): + for fn in files: + if fn.endswith(".html"): + key = os.path.relpath(os.path.join(root, fn), os.path.join(HERE, "templates"))[:-5] + tpl[key] = read("templates", key + ".html") + shared = {k: v for k, v in site.items() if isinstance(v, str)} + for k in ("contact", "security", "abuse"): # no mailto link, against address harvesters + shared[k + "_shown"] = site[k].replace("@", " (at) ") + svc = {s["id"]: s for s in site["services"]} + + pages = [] + for lang in langs_order: + for pid, spec in PAGES.items(): + data = langs[lang]["pages"].get(pid) + if data: + pages.append(dict(lang=lang, kind="page", id=pid, nav=spec["nav"], lead=spec["lead"], path=data["path"], + title=data["title"], description=data["description"], data=data, src=f"lang/{lang}.json: {pid}")) + posts = load_posts() + pages += posts + by_id = {(p["id"], p["lang"]): p for p in pages} + if ("news", "en") not in by_id: + fail("lang/en.json needs a 'news' page") + site["news_url"] = by_id[("news", "en")]["path"] + + def url_for(lang, pid): + """Page in this language, else the English one.""" + return (by_id.get((pid, lang)) or by_id[(pid, "en")])["path"] + + # Manifesto: one Markdown file per language that has the page. + manifesto = {} + for lang in langs_order: + if ("manifesto", lang) in by_id: + title, toc, md_html = md_to_html(no_em_dash(read(f"MANIFESTO.{lang}.md"))) + manifesto[lang] = dict( + manifesto_title=html.escape(title), + manifesto_toc="\n".join(f'
  • {inline(h)}
  • ' for sl, h in toc), + manifesto_body=md_html) + + def news_lists(lang): + mark = "" if lang == "en" else ' hreflang="en" lang="en"' + lines = [] + for p in posts: + line = f'
  • {esc(p["title"])}' + if p["summary"]: + line += ": " + esc(p["summary"]) + lines.append(line + "
  • ") + full = "
      \n" + "\n".join(lines) + "\n
    " if posts else f"

    \n{esc(langs[lang].get('news_empty', ''))}\n

    " + short = "\n".join(f'
  • {esc(x["title"])}
  • ' + for x in posts[:NEWS_ON_HOME]) + return full, short + + for p in pages: + lang = p["lang"] + L = langs[lang] + name = p["src"] + ctx = dict(shared) + ctx.update({k: esc(v) for k, v in L.items() if isinstance(v, str)}) + ctx["lang"] = lang + for k, label in L["nav"].items(): + ctx["nav_" + k] = esc(label) + for k in NAV[1:] + ("history",): + ctx["url_" + k] = url_for(lang, k) + ctx["history_attr"] = "" if ("history", lang) in by_id else ' hreflang="en"' + ctx["robots_meta"] = "" if indexable(p) else NOINDEX + ctx["version_lc"] = esc(L["version"].lower()) + data = p.get("data", {}) + ctx.update({k: esc(v) for k, v in data.items() if isinstance(v, str)}) + # A list of plain strings in a page entry becomes list items: {{name}} goes inside
      . + ctx.update({k: "\n".join(f"
    • {esc(x)}
    • " for x in v) for k, v in data.items() + if isinstance(v, list) and all(isinstance(x, str) for x in v)}) + page_title = p["title"] if p["kind"] == "page" else "kmalloc.org: " + p["title"] + ctx.update(css=css, path=p["path"], title_html=html.escape(page_title), post_title=html.escape(p["title"]), + description_attr=html.escape(p["description"], quote=True), doc_url=site["base_url"] + p["path"], + date=p.get("date", "")) + for k in NAV: + ctx["cur_" + k] = ' aria-current="page"' if p["nav"] == k else "" + + # Every other language that has this page; a page without translation (news) points to the other home. + twins = {l: by_id[(p["id"], l)] for l in langs_order if l != lang and (p["id"], l) in by_id} + if not twins: + fallback = "it" if lang == "en" else "en" + twins = {fallback: by_id[("home", fallback)]} + switch = data.get("switch", {}) + ctx["lang_links"] = "\n·\n".join( + f'{esc(langs[l]["lang_name"])}' for l, t in twins.items()) + have = {l: by_id[(p["id"], l)] for l in langs_order if (p["id"], l) in by_id} + ctx["alt_links"] = "\n".join(f'' for l, q in have.items()) if len(have) > 1 else "" + + if p["kind"] == "post": + _, _, post_html = md_to_html(p["body"]) + ctx["post_body"] = post_html + content = render(tpl["news-post"], ctx, "templates/news-post.html") + lead = "news" + else: + body_tpl = tpl["pages/" + p["id"]] + if "{{news_list}}" in body_tpl: + ctx["news_list"] = news_lists(lang)[0] + if "{{latest_news}}" in body_tpl: + short = news_lists(lang)[1] + ctx["latest_news"] = render(tpl["latest-news"], dict(ctx, news_items=short), "templates/latest-news.html") if short else "" + if p["id"] == "home": + ctx["services_list"] = "\n".join( + f'
    • {svc[i]["label"]}: {esc(data["services"][i])}
    • ' for i in site["home_order"]) + elif p["id"] == "services": + ctx["service_sections"] = "".join( + render(tpl["parts/service-section"], dict(ctx, id=s["id"], name=esc(data["items"][s["id"]]["name"]), + text=esc(data["items"][s["id"]]["text"]), url=s["url"]), + "templates/parts/service-section.html") for s in site["services"]) + ctx.update({"col_" + k: esc(v) for k, v in data["retention_cols"].items()}) + ctx["retention_rows"] = "\n".join(retention_row(r, data["retention_cols"]) for r in data["retention_rows"]) + elif p["id"] == "people": + cards = [] + for person in site["people"]: + handle, nm = person["handle"], person.get("name", "") + entries = ([("home", person["home"], data["personal_page"])] if person.get("home") else []) + entries += [("link", x["url"], x["label"]) for x in person["links"]] + links = "\n".join(f'
    • {esc(label)}
    • ' for _, u, label in entries) + if person.get("gpg"): + links += (f'\n
    • {esc(data["gpg_label"])}: {os.path.basename(site["gpg_key"])}, ' + f'{esc(data["gpg_word"])} {site["gpg_fingerprint"]}
    • ') + cards.append(render(tpl["parts/person-card"], dict( + ctx, handle=esc(handle), title=(esc(nm) + " (" + esc(handle) + ")") if nm else esc(handle), + bio=esc(data["bios"][handle]), links=links), "templates/parts/person-card.html")) + ctx["people_cards"] = "".join(cards) + elif p["id"] == "history": + ctx["history_list"] = "\n".join( + f'

      {esc(L["version"])} {esc(v["version"])},

      \n\n' + + "
        \n" + "\n".join(f"
      • {esc(c)}
      • " for c in v["changes"]) + "\n
      \n" for v in data["versions"]) + elif p["id"] == "manifesto": + ctx.update(manifesto[lang]) + ctx["note_block"] = f'

      \n{esc(data["note"])}\n

      \n\n' if data.get("note") else "" + content = render(body_tpl.strip("\n") + "\n", ctx, f"templates/pages/{p['id']}.html") + lead = p["lead"] + ctx["content"] = content + ctx["lead"] = render(tpl["lead-" + lead], ctx, f"templates/lead-{lead}.html") + ctx["feed"] = render(tpl["feed"], ctx, "templates/feed.html") + ctx["badges"] = render(tpl["badges"], dict(ctx, doc_q=ctx["doc_url"].replace(":", "%3A").replace("/", "%2F")), "templates/badges.html") + ctx["header"] = render(tpl[L.get("header", "header")], ctx, "templates/header.html") + ctx["footer"] = render(tpl["footer"], ctx, "templates/footer.html") + rel = p["path"].lstrip("/") + write(rel + "index.html" if rel == "" or rel.endswith("/") else rel, render(tpl["base"], ctx, "templates/base.html")) + + write(site["news_url"].lstrip("/") + "feed.xml", rss(langs["en"], site, posts)) + + for dest, src in ASSETS.items(): + target = os.path.join(OUT, dest) + os.makedirs(os.path.dirname(target), exist_ok=True) + shutil.copy(os.path.join(HERE, src), target) + write("robots.txt", robots_txt(p["path"] for p in pages if indexable(p))) + print(f"built {len(pages)} pages into {OUT}") + + +build() diff --git a/content/de/manifesto.md b/content/de/manifesto.md index 2f31df4..98b8f42 100644 --- a/content/de/manifesto.md +++ b/content/de/manifesto.md @@ -2,7 +2,9 @@ Title: kmalloc.org: Manifest ID: manifesto Description: Das Manifest von kmalloc.org: freie Software, Privatsphäre, ein offenes Internet, Würde bei der Arbeit. Layout: manifesto -Note: Übersetzung der Version 1.3 nach den englischen und italienischen Texten. +Note: Übersetzung der Version 1.0 nach den englischen und italienischen Texten. +ManifestoVersion: 1.0 +ManifestoDate: 2026-11-12 - > **Free Your Mind… and Your Ass Will Follow.** > Funkadelic, *Free Your Mind… and Your Ass Will Follow* (1970) @@ -13,9 +15,7 @@ Note: Übersetzung der Version 1.3 nach den englischen und italienischen Texten. kmalloc.org geht von einer einfachen Überzeugung aus: Freiheit darf kein Abonnement sein, kein Zugeständnis der Mächtigen und kein Häkchen, versteckt am Ende eines Vertrags. -Wir sind Hacker aus Kultur, antifaschistisch aus Überzeugung, antiautoritär in unserem Streben nach Autonomie und unabhängig in unseren Entscheidungen. Wir verteidigen freie Software, ein offenes Internet, Privatsphäre und Würde bei der Arbeit. Wir glauben an Unternehmertum und Eigeninitiative, nicht an Missbrauch, Monopole oder Ausbeutung. - -Heute bedeutet „wir“ eine einzige Person. Es bleibt „wir“, weil es offen ist: Andere können dazukommen, indem sie dieses Manifest annehmen. +Wir sind Hacker aus Kultur, antifaschistisch aus Überzeugung, libertär in unserem Streben nach Autonomie und unabhängig in unseren Entscheidungen. Wir verteidigen freie Software, ein offenes Internet, Privatsphäre und Würde bei der Arbeit. Wir glauben an Unternehmertum und Eigeninitiative, nicht an Missbrauch, Monopole oder Ausbeutung. Wir suchen keine Gefolgschaft. Wir wollen Menschen, die bereit sind, auch das infrage zu stellen, was hier geschrieben steht. @@ -119,52 +119,6 @@ Eine Alternative, die niemand nutzen kann, reicht nicht. Freiheit braucht Pflege **Build, don't just complain.** -## 13. Dein Glaube geht uns nichts an - -kmalloc.org bezieht keine religiöse Position. Wir fragen niemanden nach seinem Glauben, um ein Konto zu eröffnen, die Mail, die Repositories oder irgendeinen anderen Dienst zu nutzen. Gläubige jeder Religion, Agnostiker und Atheisten haben die gleichen Rechte und die gleichen Pflichten. - -Wie bei politischen Meinungen in Punkt 11 verlangen wir weder Gefolgschaft noch Verzicht: Alle bringen ihre eigenen Überzeugungen mit, ohne sie beweisen zu müssen und ohne sie anderen aufzwingen zu können. - -**Du kommst mit deinen Ideen herein, nicht mit deinem Glauben.** - -## 14. Sinn braucht keinen Gott - -Für uns ist keine Religion nötig, um gut zu leben, eine solide Ethik zu haben oder einen Sinn in den Dingen zu finden. Empathie, Neugier, Verantwortung gegenüber anderen und kritisches Denken genügen, und keines davon braucht eine höhere Autorität oder einen heiligen Text, um zu existieren. - -Das ist kein Urteil über Gläubige: Es ist eine Überzeugung, offen für die Diskussion wie alles andere in diesem Text. - -**Wir brauchen keinen Gott, um bessere Menschen zu sein.** - -## 15. KI: ein Werkzeug, keine Krücke - -Wir sind für künstliche Intelligenz, und wir nutzen sie. Drei Regeln sorgen dafür, dass sie ein Werkzeug bleibt. - -**Sie macht abhängig.** Wer sie einmal entdeckt hat, kommt schwer zurück. Kenne sie gut genug, um auch ohne sie weiterarbeiten zu können. - -**Gib ihr niemals deine Daten.** Anonymisiere vorher alles: Namen, Adressen, Zugangsdaten, Schlüssel, Nachrichten anderer Menschen. Geh davon aus, dass alles, was du sendest, nicht mehr dir gehört. - -**Lerne mit ihr, werde nicht sie.** Nutze sie, um etwas zu verstehen, nicht als Ersatz für dich selbst. Ein Gehirn, das alles delegiert, schrumpft. - -**Nutze sie, um mehr zu denken, nicht weniger.** - -## 16. Programmieren mit einem Exoskelett - -In der Entwicklung ist KI ein Exoskelett: Sie hilft dir, schneller zu gehen, sie geht nicht für dich. Nutze sie als Sparringspartner, um Ideen zu sammeln, einen Entwurf zu hinterfragen und die Lücken in einer Idee zu finden. - -Schreib den Code selbst und nutze dann KI, um ihn zu überprüfen, zu korrigieren und zu lernen, wie du ihn besser machst. Du bleibst für jede Zeile verantwortlich, die du auslieferst. - -Wer KI im Code aus Prinzip ablehnt, bleibt, wo er ist. - -**Das Exoskelett ersetzt nicht die Beine.** - -## 17. Die Daten anderer gehören nicht uns - -Hacker lernen, wie Dinge funktionieren, und das gibt ihnen Macht über die Systeme und Daten anderer. Wir gehen sorgsam damit um: Wir beschädigen, verändern oder vermüllen keine Daten, die nicht uns gehören, und wir nehmen nichts Privates, nur weil wir es erreichen können. - -Öffentliche Daten sollten offen und leicht nutzbar sein; private Daten müssen geschützt werden. Neugier ist keine Einwilligung. - -**Neugier öffnet die Tür; die Einwilligung entscheidet, ob du eintrittst.** - ## Unsere Verpflichtungen Bei kmalloc.org müssen diese Grundsätze auch in der Praxis gelten: @@ -172,16 +126,10 @@ Bei kmalloc.org müssen diese Grundsätze auch in der Praxis gelten: - Keine Werbetracker und keine verhaltensbasierte Werbung. - Kein Verkauf und keine Monetarisierung personenbezogener Daten der Besucherinnen und Besucher. - Minimale Erhebung technischer Daten, mit ausdrücklich genannten Zwecken und Speicherfristen. -- Eine öffentliche Tabelle, Dienst für Dienst: was die Administration sehen kann, was nicht Ende-zu-Ende-verschlüsselt ist und wie lange Daten gespeichert werden. - Kein Pflichtkonto bei Big Tech, um öffentliche Inhalte zu lesen. - Vorrang für freie Software, offene Standards und unabhängige Dienste, wo immer es praktikabel ist. - Transparenz über Abhängigkeiten, Finanzierung, Interessenkonflikte und die Grenzen unserer Entscheidungen. -- Eine öffentliche Seite zur Finanzierung: was der Server kostet, wer ihn bezahlt und wie man beitragen kann. Spenden verschaffen keine Macht über Entscheidungen. -- Respekt für alle, die mitwirken: keine Diskriminierung, auch nicht aus religiösen Gründen, keine Einschüchterung, kein Machtmissbrauch. -- Öffentliche Kriterien für Konten: diese Grundsätze teilen und die Nutzungsregeln auf der Seite [Dienste](/services.html#rules) einhalten. Eine schriftliche Begründung und ein Einspruchsrecht bei jeder Ablehnung oder Schließung. -- Eine öffentliche Richtlinie zu Anfragen von Behörden: Wir handeln nur auf gültige rechtliche Anfragen hin, informieren die betroffene Person, sofern das Gesetz es erlaubt, und veröffentlichen regelmäßig einen Transparenzbericht, auch wenn es keine Anfragen gab. -- Zwei öffentliche Adressen, eine für Sicherheit und eine für Missbrauch. Missbrauchsmeldungen brauchen kein GPG. Sicherheitsmeldungen folgen einer öffentlichen Richtlinie zur verantwortungsvollen Offenlegung. -- Falls kmalloc.org eingestellt wird: 90 Tage Vorankündigung und ein Export der Daten aller Kontoinhaber (Mail, Repositories, Kontakte). +- Respekt für alle, die mitwirken: keine Diskriminierung, keine Einschüchterung, kein Machtmissbrauch. ## Epilog: Befreie deinen Kopf @@ -196,13 +144,3 @@ Freiheit beginnt nicht mit einem Produkt, einem Betriebssystem oder einer Plattf **Free Your Mind… and Your Ass Will Follow.** *kmalloc.org: Allocate freedom.* - -## Über diesen Text - -Jede Version dieses Manifests trägt ein Datum. Eine öffentliche Seite listet jede Änderung auf. - -Änderungsvorschläge gehören in ein öffentliches Issue im [Repository der Website](https://git.kmalloc.org/squid/kmalloc.org/issues). Heute entscheidet der Autor, was aufgenommen wird. - -Wenn die Fassungen voneinander abweichen, ist der englische Text maßgeblich. - -Dieser Text steht unter der Lizenz CC BY-SA 4.0. diff --git a/content/en/index.md b/content/en/index.md index 36d397d..2baab7b 100644 --- a/content/en/index.md +++ b/content/en/index.md @@ -17,7 +17,7 @@ kmalloc.org is an independent hacker space that promotes free software, privacy ## Manifesto {#manifesto} -What we believe, in a few points and some commitments: +What we believe, in twelve points and a few commitments: [read the manifesto](/manifesto.html) ({{version_lc}} {{manifesto_version}}). ## People {#people} @@ -25,16 +25,6 @@ What we believe, in a few points and some commitments: Who is behind kmalloc.org: [meet the people](/people.html). -## Why kmalloc {#why-kmalloc} - -What the name means, and why we picked it: -[read why kmalloc](/why-kmalloc.html). - -## Active projects {#projects} - -What we're building right now, as free software: -[see active projects](/projects.html). - ## Services {#services} Run on our own server, with free software. Accounts are created by hand. diff --git a/content/en/manifesto-history.md b/content/en/manifesto-history.md index 6a473c3..03f3827 100644 --- a/content/en/manifesto-history.md +++ b/content/en/manifesto-history.md @@ -8,11 +8,6 @@ Layout: bare Every version of the manifesto has a number and a date. This page lists what changed in each one. [Read the current manifesto](/manifesto.html). -

      Version 1.3,

      - -- Three new points, 15, 16 and 17: how we think about artificial intelligence, as a personal ethics (dependence, your data, learning) and as a way of working with code (an exoskeleton, not a replacement), and respect for other people's data as a hacker principle (curiosity is not consent). -- Preamble: in the Italian text "libertari" becomes "antiautoritari", as the English text has said since 1.1. -

      Version 1.2,

      - Two new points, 13 and 14: the project's secularism (no faith required or discriminated against) and the conviction that no religion is necessary to live well or have an ethics. diff --git a/content/en/manifesto.md b/content/en/manifesto.md index 5150cb9..b5ed42c 100644 --- a/content/en/manifesto.md +++ b/content/en/manifesto.md @@ -134,36 +134,6 @@ This is not a judgment on those who believe: it is a conviction, open to discuss **We don't need a god to be better people.** -## 15 — AI: a tool, not a crutch - -We are in favour of artificial intelligence, and we use it. Three rules keep it a tool. - -**It is addictive.** Once you have discovered it, going back is hard. Know it well enough to keep working without it. - -**Never give it your data.** Anonymize everything first: names, addresses, credentials, keys, other people's messages. Assume that whatever you send is no longer yours. - -**Learn with it, do not become it.** Use it to understand something, not as a substitute for yourself. A brain that delegates everything shrinks. - -**Use it to think more, not to think less.** - -## 16 — Code with an exoskeleton - -In development, AI is an exoskeleton: it helps you walk faster, it does not walk for you. Use it as a sparring partner to brainstorm, to question a design, to find the holes in an idea. - -Write the code yourself, then use AI to review it, correct it, and learn how to make it better. You stay responsible for every line you ship. - -Those who refuse AI in code on principle will stay where they are. - -**The exoskeleton does not replace the legs.** - -## 17 — Other people's data is not ours - -Hackers learn how things work, and that gives them power over other people's systems and data. We use it with care: we do not damage, alter or litter data that is not ours, and we do not take what is private just because we can reach it. - -Public data should be open and easy to use; private data must be protected. Curiosity is not consent. - -**Curiosity opens the door; consent decides whether you walk in.** - ## Our commitments At kmalloc.org, these principles must hold in practice: diff --git a/content/en/news/index.md b/content/en/news/index.md index 19b5b77..311b8be 100644 --- a/content/en/news/index.md +++ b/content/en/news/index.md @@ -7,14 +7,6 @@ Layout: bare Updates from kmalloc.org. -{{news_blog}} - -## Categories {#categories} - -{{categories_list}} - -## Archive {#archive} - -{{news_archive}} +{{news_list}} [RSS feed](/news/feed.xml) diff --git a/content/en/people.md b/content/en/people.md index f38ea99..d67715e 100644 --- a/content/en/people.md +++ b/content/en/people.md @@ -12,7 +12,6 @@ Who is behind kmalloc.org. I'm squid. I run kmalloc.org, write code and maintain the services on this site. I have been into computers since I was ten, when I got an IBM PS/2 with a 486DX and played Gorilla, a QBasic game: ever since, I have been taking things apart to understand how they work. Outside of work: retro computing, science fiction and extreme metal. - [Personal page](/~squid/) -- [Blog](https://orivega.io/) - [Mastodon]({{mastodon_url}}) - [git](https://git.kmalloc.org/squid) - GPG key: [squid.asc]({{gpg_key}}), fingerprint `{{gpg_fingerprint}}` diff --git a/content/en/projects.md b/content/en/projects.md deleted file mode 100644 index 21308c7..0000000 --- a/content/en/projects.md +++ /dev/null @@ -1,29 +0,0 @@ -Title: kmalloc.org: Active projects -ID: projects -Description: Software kmalloc.org builds and maintains right now, as free software. -Layout: bare -- - -# Active projects - -Software kmalloc.org builds and runs, in active development, source open on our own Forgejo. - -## motorino - -The static site generator that builds kmalloc.org itself: Markdown in, plain HTML out, no JavaScript, no framework. -[git.kmalloc.org/squid/motorino](https://git.kmalloc.org/squid/motorino) - -## parsimony - -A modern mailing list manager in a single binary, an evolution of Mailman: Postfix delivers to it, it signs the outgoing mail with DKIM, keeps a durable queue with retries and has a searchable archive. SQLite storage, one config file. Status: early. -[git.kmalloc.org/squid/parsimony](https://git.kmalloc.org/squid/parsimony) - -## sonda - -A privacy-first, self-hosted music server written in Go. Streams the music you already own from your own disks, and keeps everything it learns about your listening on your own machine. Status: early. -[git.kmalloc.org/squid/sonda](https://git.kmalloc.org/squid/sonda) - -## kmalloc.org - -This site. Content in Markdown, built by motorino, deployed automatically on every push. -[git.kmalloc.org/squid/kmalloc.org](https://git.kmalloc.org/squid/kmalloc.org) diff --git a/content/en/services.md b/content/en/services.md index 5fa61e8..051f251 100644 --- a/content/en/services.md +++ b/content/en/services.md @@ -1,6 +1,6 @@ Title: kmalloc.org: Services ID: services -Description: The services run by kmalloc.org: email, git, personal pages, a blog, books, a pastebin, Mastodon, XMPP, Matrix, mailing lists, video conferences and a Gemini capsule. Free, by request. +Description: The services run by kmalloc.org: email, git, Mastodon, XMPP, Matrix, mailing lists and video conferences. Free, by request. Layout: bare - # Services @@ -31,8 +31,6 @@ The services are free of charge. To ask for an account, use telling us which services you want and the username you would like. Messages must be encrypted with GPG, see [Contact](#contact). -The pastebin and the Gemini capsule need no account. - ## Contact {#contact} To contact me you need GPG: write to the address above with your message encrypted with my public key. @@ -45,62 +43,37 @@ Fingerprint of my key: `{{gpg_fingerprint}}` ## Email {#mail} An address @kmalloc.org on our own mail server, with webmail and support for any standard mail client. IMAP: mail.kmalloc.org, port 993 (TLS). SMTP submission: mail.kmalloc.org, port 465 (TLS). Outgoing mail is signed with DKIM and protected by SPF and DMARC. -You can also ask for forwarding only: mail for name@kmalloc.org goes to your contact email and nothing stays on our server. -[open webmail](https://webmail.kmalloc.org/). +[open](https://webmail.kmalloc.org/). ## Mailing lists {#lists} Mailing lists with web archives (Mailman 3). Lists live under @lists.kmalloc.org. If you need one, ask. -[open the mailing lists](https://lists.kmalloc.org/). +[open](https://lists.kmalloc.org/). ## Git {#git} Code hosting with Forgejo: repositories, issues and pull requests. Git over SSH uses port 2222. Reading public repositories needs no account. -[open git](https://git.kmalloc.org/). +[open](https://git.kmalloc.org/). ## Mastodon {#social} A Mastodon server. Your address is @name@social.kmalloc.org. You can ask for an account on the site itself: requests are approved by hand. -[open Mastodon](https://social.kmalloc.org/). +[open](https://social.kmalloc.org/). ## XMPP chat {#chat} Instant messaging with XMPP: address name@kmalloc.org, group rooms on conference.kmalloc.org, file sharing, and audio and video calls through our own TURN server. Use the web client or any XMPP app (server kmalloc.org, port 5222). -[open the chat](https://chat.kmalloc.org/). +[open](https://chat.kmalloc.org/). ## Matrix {#matrix} A Matrix homeserver: address @name:kmalloc.org. Use the Element web client or any Matrix app with homeserver matrix.kmalloc.org. -[open Element](https://element.kmalloc.org/). +[open](https://element.kmalloc.org/). ## Video conferences {#meet} Video conferences with Jitsi Meet. Anyone with the link can join a room; creating a room needs an account. -[open Jitsi Meet](https://meet.kmalloc.org/). - -## Personal pages {#pages} - -A page of your own at `kmalloc.org/~name`: plain HTML, written and published by you. Create a public repository called `home` in your Forgejo account, put an `index.html` in it, and the page is online about a minute after you push. The repository can be up to 50 MB, and symbolic links are not copied. You need an account on Git. Search engines are asked not to index these pages. - -## Blog {#blog} - -A blog with WriteFreely, at `log.kmalloc.org/name`: one blog per person, written in Markdown. It can be followed from Mastodon. The name cannot have an underscore. -[open the blog](https://log.kmalloc.org/). - -## Books {#books} - -BookWyrm, at `lore.kmalloc.org`: you log the books you read, write reviews and follow other readers. It is part of the fediverse, so it can be followed from Mastodon too. -[open BookWyrm](https://lore.kmalloc.org/). - -## Pastebin {#paste} - -A pastebin with PrivateBin, at paste.kmalloc.org. It needs no account. A paste is encrypted in your browser before it is sent, and the key stays in the link, after the `#`: the server never sees it. Every paste expires, from 5 minutes to 1 month (one week by default), and you can add a password or have it burn after the first reading. A paste is at most 512 KiB, with text and code only, no files and no comments, and one address can make one paste every 30 seconds. -[open the pastebin](https://paste.kmalloc.org/). - -## Gemini capsule {#gemini} - -The pages of this site as a capsule on Gemini: `gemini://kmalloc.org`. Gemini is a small protocol for reading plain text, with no scripts, cookies or ads. You need a Gemini client, such as Lagrange, Amfora or Kristall. The capsule is in Italian, with the pages in English under `/en/`, and the news are in a feed: `gemini://kmalloc.org/news/feed.gmi`. The certificate is self-signed, as usual in Gemini: your client asks you to trust it the first time. Unlike the website, the capsule server logs the address and the page of each request, like our other services (14 days). -[open the capsule](gemini://kmalloc.org/). +[open](https://meet.kmalloc.org/). ## Rules of use {#rules} @@ -199,36 +172,6 @@ What the administrator of the server can see, what is not end-to-end encrypted, Audio and video: they pass through the server. Nothing is recorded. - -Personal pages -The pages you publish and the repository they come from. -Everything: the pages are public. -Until you delete the repository. The web server does not log visits. - - -Blog -Your posts, drafts included. -Everything. -Posts: until you delete them. - - -Books -Your shelves, reviews and follows, private posts and direct messages included. -Everything, private posts and direct messages included. -Until you delete them. - - -Pastebin -That a paste exists, its size and when it expires. Not its text: the key is in the link, not on the server. -The size and the expiry date of a paste. The text is encrypted in your browser, but the server is the one that sends the page that does the encrypting. -Until the expiry you choose: one month at most. - - -Gemini capsule -Nothing of yours: the pages are public. The technical log has your address and the page you asked for. -Everything: the capsule is public, and the connection is encrypted with TLS. -The technical log: 14 days. - @@ -275,12 +218,6 @@ You can use them for stickers, posters, pages and links about kmalloc.org. Selli [download riot_pack.zip (0.7 MB)](/riot_pack.zip). -### Member badge {#badge} - -Every new account gets a small badge in the welcome email, like the ones for valid HTML: `user #4821`, with a random number, or `admin #1` for an administrator. You can put it on your site. It proves nothing: anyone can type a number. The email has the links to the files and the HTML to paste. - -If you load the picture from our server, our server receives the address of the visitor and the page they are on. It does not keep them, because the web server does not log visits. If you prefer that nothing reaches us, download the files and host them yourself. If you had an account before the badges, ask us for one. - ## Good to know {#terms} Everything is run by one person on one server, with nightly encrypted backups and no guarantees of availability. diff --git a/content/en/why-kmalloc.md b/content/en/why-kmalloc.md deleted file mode 100644 index 4f2c162..0000000 --- a/content/en/why-kmalloc.md +++ /dev/null @@ -1,13 +0,0 @@ -Title: kmalloc.org: Why kmalloc -ID: why-kmalloc -Description: Why this project is called kmalloc, after a function in the Linux kernel. -Layout: bare -- - -# Why kmalloc - -In the Linux kernel, `kmalloc()` is the function that hands a piece of memory to whatever asks for it: a driver, a filesystem, a network buffer. It does not profile the caller, does not resell the allocation to someone else, does not fail silently and hand you something smaller instead. It either gives you exactly what you asked for, or it tells you plainly that it could not. - -That is the model. Infrastructure that works like a kernel primitive: give people what they ask for, honestly, with no conditions attached that were never part of the request. No engagement to optimize, no data to monetize behind your back, no "free" that is paid for with you. - -We are also, simply, nerds. That is the other half of the reason for the name: not a word a branding agency would ever choose, but a function signature straight out of the kernel source, the kind of thing you only name something after if you have actually read it. The name is a kind of password. Anyone who has read kernel source recognizes it on sight; anyone who hasn't can look it up in five minutes. It does not promise to be mysterious. It promises to be exact. diff --git a/content/es/manifesto.md b/content/es/manifesto.md index bfe89e0..f4f538a 100644 --- a/content/es/manifesto.md +++ b/content/es/manifesto.md @@ -2,7 +2,9 @@ Title: kmalloc.org: Manifiesto ID: manifesto Description: El manifiesto de kmalloc.org: software libre, privacidad, una Internet abierta, dignidad en el trabajo. Layout: manifesto -Note: Traducción de la versión 1.3 a partir de los textos en inglés y en italiano. +Note: Traducción de la versión 1.0 a partir de los textos en inglés y en italiano. +ManifestoVersion: 1.0 +ManifestoDate: 2026-11-12 - > **Free Your Mind… and Your Ass Will Follow.** > Funkadelic, *Free Your Mind… and Your Ass Will Follow* (1970) @@ -13,9 +15,7 @@ Note: Traducción de la versión 1.3 a partir de los textos en inglés y en ital kmalloc.org nace de una convicción sencilla: la libertad no puede ser un servicio por suscripción, una concesión del poder ni una casilla escondida al final de un contrato. -Somos hackers por cultura, antifascistas por convicción, antiautoritarios en nuestra búsqueda de autonomía e independientes en nuestras decisiones. Defendemos el software libre, un Internet abierto, la privacidad y la dignidad en el trabajo. Creemos en la empresa y en la iniciativa individual, no en el abuso, el monopolio ni la explotación. - -Hoy, «nosotros» significa una sola persona. Sigue siendo «nosotros» porque está abierto: otras personas pueden unirse aceptando este manifiesto. +Somos hackers por cultura, antifascistas por convicción, libertarios en nuestra búsqueda de autonomía e independientes en nuestras decisiones. Defendemos el software libre, un Internet abierto, la privacidad y la dignidad en el trabajo. Creemos en la empresa y en la iniciativa individual, no en el abuso, el monopolio ni la explotación. No buscamos seguidores. Queremos personas capaces de cuestionar incluso lo que escribimos aquí. @@ -119,52 +119,6 @@ Una alternativa que nadie puede usar no es suficiente. La libertad requiere mant **Build, don't just complain.** -## 13. Tu fe no es asunto nuestro - -kmalloc.org no toma ninguna posición religiosa. No preguntamos la fe de nadie para abrir una cuenta, usar el correo, los repositorios o cualquier otro servicio. Los creyentes de cualquier religión, los agnósticos y los ateos tienen los mismos derechos y los mismos deberes. - -Como con las opiniones políticas del punto 11, no pedimos ni adhesión ni renuncia: cada cual trae aquí sus propias convicciones, sin tener que demostrarlas y sin poder imponerlas a los demás. - -**Aquí se entra con las propias ideas, no con la propia fe.** - -## 14. El sentido no necesita un dios - -Para nosotros, ninguna religión es necesaria para vivir bien, tener una ética sólida o encontrar sentido a las cosas. Bastan la empatía, la curiosidad, la responsabilidad hacia los demás y el pensamiento crítico, y ninguna de ellas necesita una autoridad superior ni un texto sagrado para existir. - -No es un juicio sobre quienes creen: es una convicción, abierta a la discusión como todo lo demás en este texto. - -**No necesitamos un dios para ser mejores personas.** - -## 15. IA: una herramienta, no una muleta - -Estamos a favor de la inteligencia artificial, y la usamos. Tres reglas hacen que siga siendo una herramienta. - -**Crea dependencia.** Una vez que la descubres, volver atrás es difícil. Conócela lo bastante como para seguir trabajando sin ella. - -**Nunca le des tus datos.** Anonimiza todo antes: nombres, direcciones, credenciales, claves, mensajes de otras personas. Da por hecho que lo que envías ya no es tuyo. - -**Aprende con ella, no te conviertas en ella.** Úsala para entender algo, no como sustituto de ti mismo. Un cerebro que lo delega todo se encoge. - -**Úsala para pensar más, no para pensar menos.** - -## 16. Programar con un exoesqueleto - -En el desarrollo, la IA es un exoesqueleto: te ayuda a caminar más rápido, no camina por ti. Úsala como sparring para hacer lluvia de ideas, para cuestionar un diseño, para encontrar los agujeros de una idea. - -Escribe tú el código y luego usa la IA para revisarlo, corregirlo y aprender a mejorarlo. Sigues siendo responsable de cada línea que publicas. - -Quien rechaza la IA en el código por principio se quedará donde está. - -**El exoesqueleto no sustituye a las piernas.** - -## 17. Los datos ajenos no son nuestros - -Los hackers aprenden cómo funcionan las cosas, y eso les da poder sobre los sistemas y los datos de los demás. Lo usamos con cuidado: no dañamos, no alteramos ni ensuciamos datos que no son nuestros, y no tomamos lo que es privado solo porque podemos alcanzarlo. - -Los datos públicos deberían ser abiertos y fáciles de usar; los privados deben protegerse. La curiosidad no es consentimiento. - -**La curiosidad abre la puerta; el consentimiento decide si entras.** - ## Nuestros compromisos En kmalloc.org, estos principios tienen que cumplirse en la práctica: @@ -172,16 +126,10 @@ En kmalloc.org, estos principios tienen que cumplirse en la práctica: - Sin rastreadores publicitarios ni publicidad conductual. - Sin venta ni monetización de los datos personales de quienes nos visitan. - Recopilación mínima de datos técnicos, con finalidades y plazos de conservación explícitos. -- Una tabla pública, servicio por servicio: qué puede ver el administrador, qué no está cifrado de extremo a extremo y durante cuánto tiempo se conservan los datos. - Ninguna cuenta obligatoria de las Big Tech para leer contenido público. - Preferencia por el software libre, los estándares abiertos y los servicios independientes, siempre que sea viable. - Transparencia sobre dependencias, financiación, conflictos de interés y los límites de nuestras decisiones. -- Una página pública sobre la financiación: cuánto cuesta el servidor, quién lo paga y cómo contribuir. Las donaciones no dan poder sobre las decisiones. -- Respeto por quienes participan: sin discriminación (tampoco por motivos religiosos), intimidación ni abuso de poder. -- Criterios públicos para las cuentas: compartir estos principios y respetar las normas de uso de la página [Servicios](/services.html#rules). Un motivo por escrito y la posibilidad de recurso para cada rechazo o cierre. -- Una política pública sobre las solicitudes de las autoridades: solo actuamos ante solicitudes legales válidas, informamos a la persona afectada cuando la ley lo permite y publicamos un informe de transparencia periódico, incluso cuando no ha habido solicitudes. -- Dos direcciones públicas, una para seguridad y otra para abusos. Las denuncias de abuso no requieren GPG. Los avisos de seguridad siguen una política pública de divulgación responsable. -- Si kmalloc.org cierra: 90 días de preaviso y exportación de los datos de quienes tienen una cuenta (correo, repositorios, contactos). +- Respeto por quienes participan: sin discriminación, intimidación ni abuso de poder. ## Epílogo: Libera tu mente @@ -196,13 +144,3 @@ La libertad no empieza con un producto, un sistema operativo o una plataforma. E **Free Your Mind… and Your Ass Will Follow.** *kmalloc.org: Allocate freedom.* - -## Sobre este texto - -Cada versión de este manifiesto tiene una fecha. Una página pública recoge todos los cambios. - -Las propuestas de cambio van en una issue pública en el [repositorio del sitio](https://git.kmalloc.org/squid/kmalloc.org/issues). Hoy es el autor quien decide qué entra. - -Si las versiones difieren, prevalece el texto en inglés. - -Este texto se publica bajo la licencia CC BY-SA 4.0. diff --git a/content/fr/manifesto.md b/content/fr/manifesto.md index 36adc13..b3bebf8 100644 --- a/content/fr/manifesto.md +++ b/content/fr/manifesto.md @@ -2,7 +2,9 @@ Title: kmalloc.org: Manifeste ID: manifesto Description: Le manifeste de kmalloc.org: logiciel libre, vie privée, un Internet ouvert, dignité au travail. Layout: manifesto -Note: Traduction de la version 1.3 à partir des textes anglais et italien. +Note: Traduction de la version 1.0 à partir des textes anglais et italien. +ManifestoVersion: 1.0 +ManifestoDate: 2026-11-12 - > **Free Your Mind… and Your Ass Will Follow.** > Funkadelic, *Free Your Mind… and Your Ass Will Follow* (1970) @@ -13,9 +15,7 @@ Note: Traduction de la version 1.3 à partir des textes anglais et italien. kmalloc.org part d'une conviction simple: la liberté ne peut pas être un service par abonnement, une faveur accordée par le pouvoir ou une case à cocher cachée au bas d'un contrat. -Nous sommes hackers par culture, antifascistes par conviction, anti-autoritaires dans notre quête d'autonomie et indépendants dans nos choix. Nous défendons le logiciel libre, un Internet ouvert, la vie privée et la dignité au travail. Nous croyons en l'entreprise et en l'initiative individuelle, pas en l'abus, le monopole ou l'exploitation. - -Aujourd'hui, « nous » désigne une seule personne. Cela reste « nous » parce que c'est ouvert: d'autres peuvent nous rejoindre en acceptant ce manifeste. +Nous sommes hackers par culture, antifascistes par conviction, libertaires dans notre quête d'autonomie et indépendants dans nos choix. Nous défendons le logiciel libre, un Internet ouvert, la vie privée et la dignité au travail. Nous croyons en l'entreprise et en l'initiative individuelle, pas en l'abus, le monopole ou l'exploitation. Nous ne cherchons pas des adeptes. Nous voulons des personnes capables de remettre en question même ce qui est écrit ici. @@ -119,52 +119,6 @@ Une alternative que personne ne parvient à utiliser ne suffit pas. La liberté **Build, don't just complain.** -## 13. Votre foi ne nous regarde pas - -kmalloc.org ne prend aucune position religieuse. Nous ne demandons la foi de personne pour ouvrir un compte, utiliser la messagerie, les dépôts ou tout autre service. Les croyants de toutes les religions, les agnostiques et les athées ont les mêmes droits et les mêmes devoirs. - -Comme pour les opinions politiques au point 11, nous ne demandons ni allégeance ni renoncement: chacun apporte ici ses propres convictions, sans avoir à les prouver et sans pouvoir les imposer aux autres. - -**On entre ici avec ses idées, pas avec sa foi.** - -## 14. Le sens n'a pas besoin d'un dieu - -Pour nous, aucune religion n'est nécessaire pour bien vivre, avoir une éthique solide ou trouver un sens aux choses. L'empathie, la curiosité, la responsabilité envers les autres et l'esprit critique suffisent, et aucun d'eux n'a besoin d'une autorité supérieure ou d'un texte sacré pour exister. - -Ce n'est pas un jugement sur celles et ceux qui croient: c'est une conviction, ouverte à la discussion comme tout le reste de ce texte. - -**Nous n'avons pas besoin d'un dieu pour être de meilleures personnes.** - -## 15. L'IA: un outil, pas une béquille - -Nous sommes favorables à l'intelligence artificielle, et nous l'utilisons. Trois règles en font un outil. - -**Elle crée une dépendance.** Une fois qu'on l'a découverte, revenir en arrière est difficile. Connaissez-la assez bien pour continuer à travailler sans elle. - -**Ne lui donnez jamais vos données.** Anonymisez tout avant: noms, adresses, identifiants, clés, messages d'autres personnes. Partez du principe que ce que vous envoyez ne vous appartient plus. - -**Apprenez avec elle, ne devenez pas elle.** Utilisez-la pour comprendre quelque chose, pas pour vous remplacer. Un cerveau qui délègue tout s'atrophie. - -**Utilisez-la pour penser plus, pas pour penser moins.** - -## 16. Coder avec un exosquelette - -En développement, l'IA est un exosquelette: elle vous aide à marcher plus vite, elle ne marche pas à votre place. Utilisez-la comme partenaire d'entraînement pour faire du brainstorming, pour remettre en question une conception, pour trouver les failles d'une idée. - -Écrivez le code vous-mêmes, puis utilisez l'IA pour le relire, le corriger et apprendre à l'améliorer. Vous restez responsables de chaque ligne que vous livrez. - -Celles et ceux qui refusent l'IA dans le code par principe resteront là où ils sont. - -**L'exosquelette ne remplace pas les jambes.** - -## 17. Les données des autres ne sont pas les nôtres - -Les hackers apprennent comment les choses fonctionnent, et cela leur donne du pouvoir sur les systèmes et les données d'autrui. Nous l'utilisons avec soin: nous n'endommageons pas, n'altérons pas et ne salissons pas les données qui ne sont pas les nôtres, et nous ne prenons pas ce qui est privé simplement parce que nous pouvons l'atteindre. - -Les données publiques doivent être ouvertes et faciles à utiliser; les données privées doivent être protégées. La curiosité n'est pas un consentement. - -**La curiosité ouvre la porte; le consentement décide si l'on entre.** - ## Nos engagements Chez kmalloc.org, ces principes doivent aussi valoir en pratique: @@ -172,16 +126,10 @@ Chez kmalloc.org, ces principes doivent aussi valoir en pratique: - Aucun traceur publicitaire ni publicité comportementale. - Aucune vente ni monétisation des données personnelles des visiteurs. - Collecte minimale des données techniques, avec des finalités et des durées de conservation explicites. -- Un tableau public, service par service: ce que l'administrateur peut voir, ce qui n'est pas chiffré de bout en bout et combien de temps les données sont conservées. - Aucun compte Big Tech obligatoire pour lire les contenus publics. - Une préférence pour le logiciel libre, les standards ouverts et les services indépendants, chaque fois que c'est possible. - Transparence sur les dépendances, le financement, les conflits d'intérêts et les limites de nos choix. -- Une page publique sur le financement: ce que coûte le serveur, qui le paie et comment contribuer. Les dons ne donnent aucun pouvoir sur les décisions. -- Respect envers les personnes qui contribuent: aucune discrimination, y compris pour des motifs religieux, intimidation ni abus de pouvoir. -- Des critères publics pour les comptes: partager ces principes et respecter les règles d'utilisation de la page [Services](/services.html#rules). Un motif écrit et un recours pour chaque refus ou fermeture. -- Une politique publique sur les demandes des autorités: nous ne donnons suite qu'aux demandes légales valides, nous informons la personne concernée lorsque la loi le permet et nous publions un rapport de transparence périodique, même lorsqu'il n'y a eu aucune demande. -- Deux adresses publiques, l'une pour la sécurité et l'autre pour les abus. Les signalements d'abus ne nécessitent pas GPG. Les signalements de sécurité suivent une politique publique de divulgation responsable. -- Si kmalloc.org ferme: 90 jours de préavis et un export des données des titulaires de compte (messagerie, dépôts, contacts). +- Respect envers les personnes qui contribuent: aucune discrimination, intimidation ni abus de pouvoir. ## Épilogue: Libère ton esprit @@ -196,13 +144,3 @@ La liberté ne commence pas avec un produit, un système d'exploitation ou une p **Free Your Mind… and Your Ass Will Follow.** *kmalloc.org: Allocate freedom.* - -## À propos de ce texte - -Chaque version de ce manifeste porte une date. Une page publique recense toutes les modifications. - -Les propositions de modification se font dans une issue publique sur le [dépôt du site](https://git.kmalloc.org/squid/kmalloc.org/issues). Aujourd'hui, c'est l'auteur qui décide de ce qui y entre. - -En cas de divergence entre les versions, le texte anglais fait foi. - -Ce texte est publié sous licence CC BY-SA 4.0. diff --git a/content/it/cronologia-manifesto.md b/content/it/cronologia-manifesto.md index 888e479..1d2dbee 100644 --- a/content/it/cronologia-manifesto.md +++ b/content/it/cronologia-manifesto.md @@ -8,11 +8,6 @@ Layout: bare Ogni versione del manifesto ha un numero e una data. Questa pagina elenca cosa è cambiato in ciascuna. [Leggi il manifesto attuale](/it/manifesto.html). -

      Versione 1.3,

      - -- Tre nuovi punti, 15, 16 e 17: come pensiamo all'intelligenza artificiale, come etica personale (dipendenza, i tuoi dati, imparare) e come modo di lavorare con il codice (un esoscheletro, non un sostituto), e il rispetto dei dati altrui come principio hacker (la curiosità non è consenso). -- Preambolo: nel testo italiano "libertari" diventa "antiautoritari", come nel testo inglese dalla 1.1. -

      Versione 1.2,

      - Due punti nuovi, 13 e 14: laicità del progetto (nessuna fede richiesta o discriminata) e la convinzione che nessuna religione sia necessaria per vivere bene o avere un'etica. diff --git a/content/it/index.md b/content/it/index.md index b48cd81..971104e 100644 --- a/content/it/index.md +++ b/content/it/index.md @@ -18,7 +18,7 @@ kmalloc.org è uno spazio hacker indipendente che promuove il software libero, l ## Manifesto {#manifesto} -Quello in cui crediamo, in pochi punti e qualche impegno: +Quello in cui crediamo, in dodici punti e qualche impegno: [leggi il manifesto](/it/manifesto.html) ({{version_lc}} {{manifesto_version}}). ## Persone {#people} @@ -26,16 +26,6 @@ Quello in cui crediamo, in pochi punti e qualche impegno: Chi c'è dietro kmalloc.org: [conosci le persone](/it/persone.html). -## Perché kmalloc {#why-kmalloc} - -Cosa significa il nome, e perché l'abbiamo scelto: -[leggi perché kmalloc](/it/perche-kmalloc.html). - -## Progetti attivi {#projects} - -Cosa stiamo costruendo ora, come software libero: -[vedi i progetti attivi](/it/progetti.html). - ## Servizi {#services} Girano sul nostro server, con software libero. Gli account si creano a mano. diff --git a/content/it/manifesto.md b/content/it/manifesto.md index b8c0d28..c42d3da 100644 --- a/content/it/manifesto.md +++ b/content/it/manifesto.md @@ -12,7 +12,7 @@ Layout: manifesto kmalloc.org nasce da una convinzione semplice: la libertà non può essere un servizio in abbonamento, una concessione del potere o una casella da spuntare in fondo a un contratto. -Siamo hacker nella cultura, antifascisti nei valori, antiautoritari nell'aspirazione all'autonomia e indipendenti nelle scelte. Difendiamo il software libero, un Internet aperto, la privacy e la dignità nel lavoro. Crediamo nell'impresa e nell'iniziativa individuale, non nell'abuso, nel monopolio o nello sfruttamento. +Siamo hacker nella cultura, antifascisti nei valori, libertari nell'aspirazione all'autonomia e indipendenti nelle scelte. Difendiamo il software libero, un Internet aperto, la privacy e la dignità nel lavoro. Crediamo nell'impresa e nell'iniziativa individuale, non nell'abuso, nel monopolio o nello sfruttamento. Oggi "noi" vuol dire una persona sola. Resta "noi" perché è aperto: altre persone possono unirsi accettando questo manifesto. @@ -134,36 +134,6 @@ Non è un giudizio su chi crede: è una convinzione, aperta alla discussione com **Non ci serve un dio per essere persone migliori.** -## 15 — IA: uno strumento, non una stampella - -Siamo a favore dell'intelligenza artificiale, e la usiamo. Tre regole la tengono uno strumento. - -**Dà dipendenza.** Una volta scoperta, tornare indietro è difficile. Conoscila abbastanza da saper continuare a lavorare anche senza. - -**Non darle mai i tuoi dati.** Anonimizza sempre prima: nomi, indirizzi, credenziali, chiavi, messaggi di altre persone. Considera che quello che invii non è più tuo. - -**Impara con lei, non diventare lei.** Usala per capire qualcosa, non come sostituto di te stesso. Un cervello che delega tutto si rattrappisce. - -**Usala per pensare di più, non per pensare di meno.** - -## 16 — Programmare con un esoscheletro - -Nello sviluppo l'IA è un esoscheletro: ti aiuta a camminare più veloce, non cammina al posto tuo. Usala come sparring partner per fare brainstorming, per mettere in discussione un progetto, per trovare i buchi in un'idea. - -Il codice scrivilo tu, poi usa l'IA per rivederlo, correggerlo e imparare a migliorarlo. Resti responsabile di ogni riga che pubblichi. - -Chi rifiuta l'IA nel codice per principio resterà dov'è. - -**L'esoscheletro non sostituisce le gambe.** - -## 17 — I dati degli altri non sono nostri - -Gli hacker imparano come funzionano le cose, e questo dà potere sui sistemi e sui dati altrui. Lo usiamo con cura: non danneggiamo, non alteriamo e non sporchiamo i dati che non sono nostri, e non prendiamo ciò che è privato solo perché ci arriviamo. - -I dati pubblici devono essere aperti e facili da usare; quelli privati vanno protetti. La curiosità non è consenso. - -**La curiosità apre la porta; il consenso decide se si entra.** - ## I nostri impegni Per kmalloc.org questi principi devono valere anche nella pratica: diff --git a/content/it/perche-kmalloc.md b/content/it/perche-kmalloc.md deleted file mode 100644 index b9e9263..0000000 --- a/content/it/perche-kmalloc.md +++ /dev/null @@ -1,13 +0,0 @@ -Title: kmalloc.org: Perché kmalloc -ID: why-kmalloc -Description: Perché questo progetto si chiama kmalloc, come una funzione del kernel Linux. -Layout: bare -- - -# Perché kmalloc - -Nel kernel Linux, `kmalloc()` è la funzione che consegna un pezzo di memoria a chi lo chiede: un driver, un filesystem, un buffer di rete. Non profila chi chiama, non rivende l'allocazione a qualcun altro, non fallisce in silenzio dandoti qualcosa di più piccolo al posto giusto. O ti dà esattamente quello che hai chiesto, o te lo dice chiaramente che non ce l'ha fatta. - -Questo è il modello. Un'infrastruttura che funziona come una primitiva del kernel: dare alle persone quello che chiedono, onestamente, senza condizioni che non facevano parte della richiesta. Nessun engagement da ottimizzare, nessun dato da monetizzare alle tue spalle, nessun "gratis" pagato con te. - -Siamo anche, semplicemente, nerd. È l'altra metà del perché di questo nome: non una parola che sceglierebbe mai un'agenzia di branding, ma la firma di una funzione presa di peso dal codice del kernel, il genere di cosa a cui dai il nome solo se l'hai davvero letta. Il nome è anche una specie di parola d'ordine. Chi ha letto il codice del kernel lo riconosce a vista; chi non l'ha fatto può cercarlo in cinque minuti. Non promette di essere misterioso. Promette di essere esatto. diff --git a/content/it/persone.md b/content/it/persone.md index 5e3b76f..67b5408 100644 --- a/content/it/persone.md +++ b/content/it/persone.md @@ -12,7 +12,6 @@ Chi c'è dietro kmalloc.org. Sono squid. Gestisco kmalloc.org, scrivo codice e mantengo i servizi di questo sito. Mi appassionano i computer da quando, a dieci anni, ebbi un IBM PS/2 con un 486DX e giocai a Gorilla, un gioco in QBasic: da allora smonto le cose per capire come funzionano. Fuori dal lavoro: retrocomputing, fantascienza ed extreme metal. - [Pagina personale](/~squid/) -- [Blog](https://orivega.io/) - [Mastodon]({{mastodon_url}}) - [git](https://git.kmalloc.org/squid) - Chiave GPG: [squid.asc]({{gpg_key}}), impronta `{{gpg_fingerprint}}` diff --git a/content/it/progetti.md b/content/it/progetti.md deleted file mode 100644 index f7a33ad..0000000 --- a/content/it/progetti.md +++ /dev/null @@ -1,29 +0,0 @@ -Title: kmalloc.org: Progetti attivi -ID: projects -Description: Software che kmalloc.org costruisce e mantiene ora, come software libero. -Layout: bare -- - -# Progetti attivi - -Software che kmalloc.org costruisce e fa girare, in sviluppo attivo, con il codice aperto sul nostro Forgejo. - -## motorino - -Il generatore di siti statici che costruisce kmalloc.org stesso: Markdown in entrata, HTML semplice in uscita, niente JavaScript, niente framework. -[git.kmalloc.org/squid/motorino](https://git.kmalloc.org/squid/motorino) - -## parsimony - -Un gestore moderno di liste di posta in un unico binario, un'evoluzione di Mailman: Postfix gli consegna la posta, firma i messaggi in uscita con DKIM, tiene una coda durevole con nuovi tentativi e ha un archivio con ricerca. Dati in SQLite, un solo file di configurazione. Stato: iniziale. -[git.kmalloc.org/squid/parsimony](https://git.kmalloc.org/squid/parsimony) - -## sonda - -Un server musicale autogestito e pensato per la privacy, scritto in Go. Trasmette la musica che hai già dai tuoi dischi, e tiene tutto quello che impara sul tuo ascolto sulla tua macchina. Stato: iniziale. -[git.kmalloc.org/squid/sonda](https://git.kmalloc.org/squid/sonda) - -## kmalloc.org - -Questo sito. Contenuti in Markdown, costruiti da motorino, pubblicati automaticamente a ogni push. -[git.kmalloc.org/squid/kmalloc.org](https://git.kmalloc.org/squid/kmalloc.org) diff --git a/content/it/servizi.md b/content/it/servizi.md index 69b56a5..0859e31 100644 --- a/content/it/servizi.md +++ b/content/it/servizi.md @@ -1,6 +1,6 @@ Title: kmalloc.org: Servizi ID: services -Description: I servizi di kmalloc.org: posta, git, pagine personali, un blog, libri, un pastebin, Mastodon, XMPP, Matrix, liste di posta, videoconferenze e una capsula Gemini. Gratuiti, su richiesta. +Description: I servizi di kmalloc.org: posta, git, Mastodon, XMPP, Matrix, liste di posta e videoconferenze. Gratuiti, su richiesta. Layout: bare - # Servizi @@ -31,8 +31,6 @@ I servizi sono gratuiti. Per chiedere un account usa indicando quali servizi vuoi e il nome utente che preferisci. I messaggi vanno cifrati con GPG, vedi [Contatti](#contact). -Il pastebin e la capsula Gemini non richiedono un account. - ## Contatti {#contact} Per contattarmi serve GPG: scrivi all'indirizzo qui sopra con il messaggio cifrato con la mia chiave pubblica. @@ -45,62 +43,37 @@ Impronta della mia chiave: `{{gpg_fingerprint}}` ## Email {#mail} Un indirizzo @kmalloc.org sul nostro server di posta, con webmail e supporto per qualsiasi client di posta standard. IMAP: mail.kmalloc.org, porta 993 (TLS). Invio SMTP: mail.kmalloc.org, porta 465 (TLS). La posta in uscita è firmata con DKIM e protetta da SPF e DMARC. -Puoi chiedere anche solo l'inoltro: la posta per nome@kmalloc.org va alla tua email di contatto e sul nostro server non resta niente. -[apri la webmail](https://webmail.kmalloc.org/). +[apri](https://webmail.kmalloc.org/). ## Mailing lists {#lists} Liste di posta con archivi consultabili sul web (Mailman 3). Le liste stanno sotto @lists.kmalloc.org. Se te ne serve una, chiedila. -[apri le liste di posta](https://lists.kmalloc.org/). +[apri](https://lists.kmalloc.org/). ## Git {#git} Hosting di codice con Forgejo: repository, issue e pull request. Git via SSH usa la porta 2222. Per leggere i repository pubblici non serve un account. -[apri git](https://git.kmalloc.org/). +[apri](https://git.kmalloc.org/). ## Mastodon {#social} Un server Mastodon. Il tuo indirizzo è @nome@social.kmalloc.org. L'account si può chiedere direttamente sul sito: le richieste si approvano a mano. -[apri Mastodon](https://social.kmalloc.org/). +[apri](https://social.kmalloc.org/). ## XMPP chat {#chat} Messaggistica con XMPP: indirizzo nome@kmalloc.org, stanze di gruppo su conference.kmalloc.org, condivisione di file e chiamate audio e video con un nostro server TURN. Usa il client web o qualsiasi app XMPP (server kmalloc.org, porta 5222). -[apri la chat](https://chat.kmalloc.org/). +[apri](https://chat.kmalloc.org/). ## Matrix {#matrix} Un homeserver Matrix: indirizzo @nome:kmalloc.org. Usa il client web Element o qualsiasi app Matrix con homeserver matrix.kmalloc.org. -[apri Element](https://element.kmalloc.org/). +[apri](https://element.kmalloc.org/). ## Video conferences {#meet} Videoconferenze con Jitsi Meet. Chiunque abbia il link può entrare in una stanza; per crearne una serve un account. -[apri Jitsi Meet](https://meet.kmalloc.org/). - -## Pagine personali {#pages} - -Una pagina tua su `kmalloc.org/~nome`: HTML semplice, che scrivi e pubblichi tu. Crea nel tuo account Forgejo un repository pubblico chiamato `home`, mettici dentro un `index.html` e la pagina va online circa un minuto dopo il push. Il repository può pesare al massimo 50 MB e i collegamenti simbolici non vengono copiati. Serve un account su Git. Ai motori di ricerca chiediamo di non indicizzare queste pagine. - -## Blog {#blog} - -Un blog con WriteFreely, su `log.kmalloc.org/nome`: uno a persona, si scrive in Markdown. Si può seguire da Mastodon. Il nome non può avere il trattino basso. -[apri il blog](https://log.kmalloc.org/). - -## Libri {#books} - -BookWyrm, su `lore.kmalloc.org`: segni i libri che leggi, scrivi recensioni e segui chi legge. Fa parte del fediverso, quindi si può seguire anche da Mastodon. -[apri BookWyrm](https://lore.kmalloc.org/). - -## Pastebin {#paste} - -Un pastebin con PrivateBin, su paste.kmalloc.org. Non serve un account. Il testo viene cifrato nel tuo browser prima di essere inviato e la chiave resta nel link, dopo il `#`: il server non la vede mai. Ogni paste scade, da 5 minuti a 1 mese (una settimana di default), e puoi aggiungere una password o farlo bruciare dopo la prima lettura. Un paste pesa al massimo 512 KiB, solo testo e codice, niente file e niente commenti, e lo stesso indirizzo può farne uno ogni 30 secondi. -[apri il pastebin](https://paste.kmalloc.org/). - -## Capsula Gemini {#gemini} - -Le pagine di questo sito come capsula Gemini: `gemini://kmalloc.org`. Gemini è un piccolo protocollo per leggere testo semplice, senza script, cookie né pubblicità. Serve un client Gemini, come Lagrange, Amfora o Kristall. La capsula è in italiano, con le pagine in inglese sotto `/en/`, e le notizie sono in un feed: `gemini://kmalloc.org/news/feed.gmi`. Il certificato è autofirmato, come di solito in Gemini: il client ti chiede di fidarti la prima volta. A differenza del sito, il server della capsula registra l'indirizzo e la pagina di ogni richiesta, come gli altri nostri servizi (14 giorni). -[apri la capsula](gemini://kmalloc.org/). +[apri](https://meet.kmalloc.org/). ## Regole d'uso {#rules} @@ -199,36 +172,6 @@ Cosa può vedere l'amministratore del server, cosa non è cifrato da capo a capo Audio e video: passano dal server. Non si registra niente. - -Pagine personali -Le pagine che pubblichi e il repository da cui vengono. -Tutto: le pagine sono pubbliche. -Finché non cancelli il repository. Il server web non registra le visite. - - -Blog -I tuoi post, anche le bozze. -Tutto. -Post: finché non li cancelli. - - -Libri -I tuoi scaffali, le recensioni e chi segui, anche i post privati e i messaggi diretti. -Tutto, anche i post privati e i messaggi diretti. -Finché non li cancelli. - - -Pastebin -Che un paste esiste, la sua dimensione e quando scade. Non il testo: la chiave sta nel link, non sul server. -La dimensione e la scadenza di un paste. Il testo è cifrato nel tuo browser, ma è il server a mandare la pagina che lo cifra. -Fino alla scadenza che scegli: al massimo un mese. - - -Capsula Gemini -Niente di tuo: le pagine sono pubbliche. Il log tecnico ha il tuo indirizzo e la pagina che chiedi. -Tutto: la capsula è pubblica e la connessione è cifrata con TLS. -Il log tecnico: 14 giorni. - @@ -275,12 +218,6 @@ Puoi usarli per adesivi, poster, pagine e link su kmalloc.org. Vendere qualcosa [scarica riot_pack.zip (0,7 MB)](/riot_pack.zip). -### Badge per gli utenti {#badge} - -Ogni nuovo account riceve nella mail di benvenuto un piccolo badge, come quelli dell'HTML valido: `user #4821`, con un numero casuale, oppure `admin #1` per chi amministra. Puoi metterlo sul tuo sito. Non prova niente: chiunque può scrivere un numero. La mail ha i link ai file e l'HTML da incollare. - -Se carichi l'immagine dal nostro server, il server riceve l'indirizzo di chi visita e la pagina in cui si trova. Non li conserva, perché il server web non registra le visite. Se preferisci che non arrivi niente a noi, scarica i file e ospitali tu. Se avevi un account prima dei badge, chiedine uno. - ## Da sapere {#terms} Tutto è gestito da una persona su un solo server, con backup notturni cifrati e nessuna garanzia di disponibilità. diff --git a/lang/de.json b/lang/de.json index 5884a7e..d03cc92 100644 --- a/lang/de.json +++ b/lang/de.json @@ -18,31 +18,5 @@ "news": "News" }, "powered_by": "Powered by", - "category_h": "Category", - "date_long": "{d}. {month} {y}", - "date_month_year": "{month} {y}", - "reading_time": "{n} Min. Lesezeit", - "post_older": "Älter", - "post_newer": "Neuer", - "post_nav": "Weitere News", - "reply_mastodon": "Auf Mastodon antworten", - "read_more": "Weiterlesen", - "pager_label": "News-Seiten", - "pager_newer": "Neuere News", - "pager_older": "Ältere News", - "pager_page": "Seite {n} von {total}", - "archive_h": "Archiv", - "archive_up": "Archiv des Jahres", - "month_01": "Januar", - "month_02": "Februar", - "month_03": "März", - "month_04": "April", - "month_05": "Mai", - "month_06": "Juni", - "month_07": "Juli", - "month_08": "August", - "month_09": "September", - "month_10": "Oktober", - "month_11": "November", - "month_12": "Dezember" + "category_h": "Category" } diff --git a/lang/en.json b/lang/en.json index 5a7c240..0aa364f 100644 --- a/lang/en.json +++ b/lang/en.json @@ -17,36 +17,9 @@ "nav": { "manifesto": "Manifesto", "people": "People", - "projects": "Projects", "services": "Services", "news": "News" }, "powered_by": "Powered by", - "category_h": "Category", - "date_long": "{d} {month} {y}", - "date_month_year": "{month} {y}", - "reading_time": "{n} min read", - "post_older": "Older", - "post_newer": "Newer", - "post_nav": "More news", - "reply_mastodon": "Reply on Mastodon", - "read_more": "Read more", - "pager_label": "News pages", - "pager_newer": "Newer news", - "pager_older": "Older news", - "pager_page": "Page {n} of {total}", - "archive_h": "Archive", - "archive_up": "Archive of the year", - "month_01": "January", - "month_02": "February", - "month_03": "March", - "month_04": "April", - "month_05": "May", - "month_06": "June", - "month_07": "July", - "month_08": "August", - "month_09": "September", - "month_10": "October", - "month_11": "November", - "month_12": "December" + "category_h": "Category" } diff --git a/lang/es.json b/lang/es.json index 183fe51..58630cf 100644 --- a/lang/es.json +++ b/lang/es.json @@ -18,31 +18,5 @@ "news": "News" }, "powered_by": "Powered by", - "category_h": "Category", - "date_long": "{d} de {month} de {y}", - "date_month_year": "{month} de {y}", - "reading_time": "{n} min de lectura", - "post_older": "Más antigua", - "post_newer": "Más reciente", - "post_nav": "Más noticias", - "reply_mastodon": "Responder en Mastodon", - "read_more": "Leer más", - "pager_label": "Páginas de noticias", - "pager_newer": "Noticias más recientes", - "pager_older": "Noticias más antiguas", - "pager_page": "Página {n} de {total}", - "archive_h": "Archivo", - "archive_up": "Archivo del año", - "month_01": "enero", - "month_02": "febrero", - "month_03": "marzo", - "month_04": "abril", - "month_05": "mayo", - "month_06": "junio", - "month_07": "julio", - "month_08": "agosto", - "month_09": "septiembre", - "month_10": "octubre", - "month_11": "noviembre", - "month_12": "diciembre" + "category_h": "Category" } diff --git a/lang/fr.json b/lang/fr.json index 1354310..a54b130 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -18,31 +18,5 @@ "news": "News" }, "powered_by": "Powered by", - "category_h": "Category", - "date_long": "{d} {month} {y}", - "date_month_year": "{month} {y}", - "reading_time": "{n} min de lecture", - "post_older": "Plus ancien", - "post_newer": "Plus récent", - "post_nav": "Autres actualités", - "reply_mastodon": "Répondre sur Mastodon", - "read_more": "Lire la suite", - "pager_label": "Pages des actualités", - "pager_newer": "Actualités plus récentes", - "pager_older": "Actualités plus anciennes", - "pager_page": "Page {n} sur {total}", - "archive_h": "Archives", - "archive_up": "Archives de l'année", - "month_01": "janvier", - "month_02": "février", - "month_03": "mars", - "month_04": "avril", - "month_05": "mai", - "month_06": "juin", - "month_07": "juillet", - "month_08": "août", - "month_09": "septembre", - "month_10": "octobre", - "month_11": "novembre", - "month_12": "décembre" + "category_h": "Category" } diff --git a/lang/it.json b/lang/it.json index b9a7a08..d7c489d 100644 --- a/lang/it.json +++ b/lang/it.json @@ -17,36 +17,9 @@ "nav": { "manifesto": "Manifesto", "people": "Persone", - "projects": "Progetti", "services": "Servizi", "news": "News" }, "powered_by": "Powered by", - "category_h": "Categoria", - "date_long": "{d} {month} {y}", - "date_month_year": "{month} {y}", - "reading_time": "{n} min di lettura", - "post_older": "Più vecchia", - "post_newer": "Più recente", - "post_nav": "Altre news", - "reply_mastodon": "Rispondi su Mastodon", - "read_more": "Leggi tutto", - "pager_label": "Pagine delle news", - "pager_newer": "News più recenti", - "pager_older": "News meno recenti", - "pager_page": "Pagina {n} di {total}", - "archive_h": "Archivio", - "archive_up": "Archivio dell'anno", - "month_01": "gennaio", - "month_02": "febbraio", - "month_03": "marzo", - "month_04": "aprile", - "month_05": "maggio", - "month_06": "giugno", - "month_07": "luglio", - "month_08": "agosto", - "month_09": "settembre", - "month_10": "ottobre", - "month_11": "novembre", - "month_12": "dicembre" + "category_h": "Categoria" } diff --git a/news/gemini-capsule.md b/news/gemini-capsule.md deleted file mode 100644 index db3851d..0000000 --- a/news/gemini-capsule.md +++ /dev/null @@ -1,26 +0,0 @@ -Title: A Gemini capsule for kmalloc.org -Author: squid -Date: 2026-11-16T12:58:00+0100 -Categories: News -Description: kmalloc.org is now also a capsule on Gemini, a small protocol for reading text: gemini://kmalloc.org. -- - -kmalloc.org now has a capsule on Gemini: [gemini://kmalloc.org](gemini://kmalloc.org/). - -## What Gemini is - -Gemini is a small protocol for reading text. A page is plain text: no scripts, no cookies, no ads, no tracking pixels. To read it you need a Gemini client, such as [Lagrange](https://gmi.skyjake.fi/lagrange/), Amfora or Kristall. - -## What is there - -The same pages as the website: the manifesto and its history, services, people and projects. The news are in a feed you can subscribe to from your client: `gemini://kmalloc.org/news/feed.gmi`. - -The capsule is in Italian, with the pages in English under `/en/`. The manifesto is also in Spanish, German and French (`/es/`, `/de/`, `/fr/`), as on the website. The news are in English only. - -## How it is made - -The capsule is built from the same Markdown files as the website, by motorino, the generator written for this site, and served by Agate. Gemini has no tables and no inline images, so a wide table becomes one card per row and an image becomes a link. - -## The certificate - -The certificate is self-signed, as usual in Gemini. Your client asks you to trust it the first time you visit and remembers it after that. If it changes later without notice, be careful. diff --git a/news/manifesto-ai.md b/news/manifesto-ai.md deleted file mode 100644 index 86d6202..0000000 --- a/news/manifesto-ai.md +++ /dev/null @@ -1,18 +0,0 @@ -Title: Manifesto 1.3: two points on artificial intelligence -Author: squid -Date: 2026-11-15T11:00:00+0100 -Categories: News, Manifesto -Description: How we use AI: as a tool and not a crutch, and as an exoskeleton for code, never as a substitute for yourself. -- - -The kmalloc.org manifesto is now at [version 1.3](/manifesto-history.html#v1.3): two new points, 15 and 16. - -## AI: a tool, not a crutch - -We are in favour of artificial intelligence, and we use it. We also think it comes with three rules: it is addictive, so know it well enough to keep working without it; never give it your data, anonymize everything first; and learn with it instead of delegating yourself to it, because a brain that delegates everything shrinks. - -## Code with an exoskeleton - -In development, AI is an exoskeleton: it helps you walk faster, it does not walk for you. A sparring partner to brainstorm and to review the code you wrote yourself, with you responsible for every line you ship. - -Read the [full manifesto](/manifesto.html) or the [history of every version](/manifesto-history.html). diff --git a/news/manifesto-data.md b/news/manifesto-data.md deleted file mode 100644 index 360eab3..0000000 --- a/news/manifesto-data.md +++ /dev/null @@ -1,16 +0,0 @@ -Title: Manifesto: a point on other people's data -Author: squid -Date: 2026-11-15T15:00:00+0100 -Categories: News, Manifesto -Description: A new point on respect for other people's data as a hacker principle: curiosity is not consent. -- - -The kmalloc.org manifesto has one more point, 17, in [version 1.3](/manifesto-history.html#v1.3). - -## Other people's data is not ours - -Hackers learn how things work, and that gives them power over other people's systems and data. We use it with care: we do not damage, alter or litter data that is not ours, and we do not take what is private just because we can reach it. Public data should be open and easy to use, private data must be protected, and curiosity is not consent. - -The idea is not new: it is the last two principles of the [Chaos Computer Club's hacker ethics](https://www.ccc.de/en/hackerethik), which the CCC added to the older ones in the 1980s. - -Read the [full manifesto](/manifesto.html) or the [history of every version](/manifesto-history.html). diff --git a/news/paste.md b/news/paste.md deleted file mode 100644 index cd524e3..0000000 --- a/news/paste.md +++ /dev/null @@ -1,20 +0,0 @@ -Title: A pastebin: paste.kmalloc.org -Author: squid -Date: 2026-11-16T12:58:00+0100 -Categories: News -Description: Share a piece of text or code with a link. It is encrypted in your browser and it expires. -- - -There is now a pastebin: [paste.kmalloc.org](https://paste.kmalloc.org/). It runs [PrivateBin](https://privatebin.info/). - -## How it works - -You write or paste a text and get a link. The text is encrypted in your browser before it is sent, and the key stays in the link, after the `#`: the server never sees it. Whoever has the full link can read the paste, nobody else. - -## No account, and everything expires - -Anyone can paste, with no account. Every paste expires, and you choose when: from 5 minutes to 1 month, one week by default. There is no "never". You can also add a password, or have the paste burn after the first reading. - -## Limits - -A paste is at most 512 KiB and the same address can make one paste every 30 seconds. No files and no comments, only text and code. If someone abuses it, we remove the paste and we may block the address. diff --git a/site.json b/site.json index f4d6901..d804d84 100644 --- a/site.json +++ b/site.json @@ -1,9 +1,5 @@ { "base_url": "https://kmalloc.org", - "news_language": "en", - "gemini_language": "it", - "gemini_web_paths": "/~", - "author": "squid", "languages": [ "en", "it", @@ -11,8 +7,8 @@ "de", "fr" ], - "manifesto_version": "1.3", - "manifesto_date": "2026-11-15", + "manifesto_version": "1.2", + "manifesto_date": "2026-11-14", "contact": "squid@kmalloc.org", "security": "security@kmalloc.org", "abuse": "abuse@kmalloc.org", diff --git a/static/riot_pack.zip b/static/riot_pack.zip index c53403b..24106cf 100644 Binary files a/static/riot_pack.zip and b/static/riot_pack.zip differ diff --git a/static/style.css b/static/style.css index 61838cb..61a6c53 100644 --- a/static/style.css +++ b/static/style.css @@ -3,21 +3,19 @@ --surface: #F1EDE0; --border: #D9D3C2; --text: #111417; - --muted: #5B564A; + --muted: #5b564a; --accent: #D9480F; - --link: #B13A0B; - --font-title: "Courier New", Courier, monospace; - --font-body: Arial, Helvetica, sans-serif; + --link: #b13a0b; } @media (prefers-color-scheme: dark) { :root { --bg: #111417; - --surface: #1B1F23; - --border: #5B564A; + --surface: #1b1f23; + --border: #5b564a; --text: #F9F7ED; - --muted: #8A8473; - --link: #F0683A; + --muted: #8a8473; + --link: #f0683a; } } @@ -27,13 +25,13 @@ body { padding: 1em; background-color: var(--bg); color: var(--text); - font-family: var(--font-body); + font-family: Arial, Helvetica, sans-serif; line-height: 1.6; } h1, h2, h3 { margin: 2em 0 .5em; - font-family: var(--font-title); + font-family: "Courier New", Courier, monospace; font-weight: normal; line-height: 1.25; } @@ -77,18 +75,10 @@ blockquote { border-left: 4px solid var(--accent); } -.note { - margin: 1em 0; - padding: .5em 1em; - border-left: 4px solid var(--accent); - background-color: var(--surface); - line-height: 1.6; -} - code { background-color: var(--surface); color: var(--text); - font-family: var(--font-title); + font-family: "Courier New", Courier, monospace; font-size: .9375em; overflow-wrap: anywhere; } @@ -131,27 +121,9 @@ code { gap: .5em; } -.lede { - margin: -.25em 0 1em; - color: var(--muted); - font-size: 1.125em; -} - -.meta { - margin-top: -.25em; - color: var(--muted); - font-size: .9375em; -} - -nav ul { - margin: 1em 0; - padding: 0; - list-style: none; -} - @media print { :root { - --bg: #FFF; + --bg: #fff; --border: #000; --text: #000; --muted: #000; @@ -172,6 +144,14 @@ nav ul { } } +.note { + margin: 1em 0; + padding: .5em 1em; + border-left: 4px solid var(--accent); + background-color: var(--surface); + line-height: 1.6; +} + table { width: 100%; border-collapse: collapse; @@ -210,7 +190,7 @@ thead th { .data tbody th { padding-top: 1em; border-bottom: none; - font-family: var(--font-title); + font-family: "Courier New", Courier, monospace; } .data td { diff --git a/templates/archive.html b/templates/archive.html deleted file mode 100644 index 401c31d..0000000 --- a/templates/archive.html +++ /dev/null @@ -1,5 +0,0 @@ -

      {{archive_h}}: {{archive_name}}

      - -{{archive_nav}} - -{{archive_posts}} diff --git a/templates/base.html b/templates/base.html index f40d963..ba0a406 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,10 +7,9 @@ - + -{{article_meta}} diff --git a/templates/feed.html b/templates/feed.html index a35ac74..4428eff 100644 --- a/templates/feed.html +++ b/templates/feed.html @@ -1 +1 @@ - + diff --git a/templates/header.html b/templates/header.html index fe6012c..358d9e5 100644 --- a/templates/header.html +++ b/templates/header.html @@ -7,8 +7,6 @@ · {{nav_people}} · -{{nav_projects}} -· {{nav_services}} · {{nav_news}} diff --git a/templates/post.html b/templates/post.html index 77f32ea..8a9a1aa 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,10 +1,7 @@

      {{post_title}}

      -{{post_summary}} -{{post_meta}} +

      +{{post_byline}} +

      {{post_body}} - -{{post_mastodon}} - -{{post_nav}} diff --git a/tools/compare.py b/tools/compare.py new file mode 100644 index 0000000..bb04f8f --- /dev/null +++ b/tools/compare.py @@ -0,0 +1,127 @@ +#!/usr/bin/env python3 +"""Compare the site built by build.py (old) with the one built by motorino (new), page by page. + +Usage: compare.py OLD_DIR NEW_DIR + +The text, the tags, their attributes, the links and the comments of every page must be the same. The +differences that the change wants are ignored: the "Powered by motorino" footer line, the generator meta, the +author and categories after the date of a news item, and its description meta. Old news addresses are moved +to the new dated ones before the comparison. Exit status 1 when anything else differs.""" +import difflib +import html as htmllib +import os +import re +import sys +from html.parser import HTMLParser + + +class Tokens(HTMLParser): + """The stream of (kind, value) tokens of a page: whitespace is collapsed and attribute order does not matter.""" + + def __init__(self): + super().__init__(convert_charrefs=True) + self.items = [] + + def handle_starttag(self, tag, attrs): + self.items.append(("start", tag + "".join(f' {k}="{v}"' for k, v in sorted(attrs)))) + + def handle_startendtag(self, tag, attrs): + self.handle_starttag(tag, attrs) + + def handle_endtag(self, tag): + self.items.append(("end", tag)) + + def handle_data(self, data): + text = " ".join(data.split()) + if text: + if self.items and self.items[-1][0] == "text": + self.items[-1] = ("text", self.items[-1][1] + " " + text) + else: + self.items.append(("text", text)) + + def handle_comment(self, data): + self.items.append(("comment", " ".join(data.split()))) + + +CREDIT = re.compile(r"

      \s*Powered by .*?

      \s*", re.S) +GENERATOR = re.compile(r']*>\s*') +BYLINE = re.compile(r'()\s*·.*?(\s*

      )', re.S) +DESCRIPTION = re.compile(r']*>\s*') + + +def tokens(html, post=False): + html = GENERATOR.sub("", CREDIT.sub("", html)) + if post: + html = DESCRIPTION.sub("", BYLINE.sub(r"\1\2", html, count=1)) + parser = Tokens() + parser.feed(html) + return [f"{kind}: {value}" for kind, value in parser.items] + + +def compare_pages(old, new, post=False): + """The differences between two pages, as lines of a diff; empty when they match.""" + a, b = tokens(old, post), tokens(new, post) + if a == b: + return [] + return [line for line in difflib.unified_diff(a, b, "old", "new", lineterm="", n=2)] + + +def remap(html, mapping): + """Replace old addresses by new ones.""" + for old, new in sorted(mapping.items(), key=lambda kv: -len(kv[0])): + html = html.replace(old, new).replace(old.replace("/", "%2F"), new.replace("/", "%2F")) + return html + + +def html_files(root): + for folder, _, files in os.walk(root): + for name in files: + if name.endswith(".html"): + yield "/" + os.path.relpath(os.path.join(folder, name), root).replace(os.sep, "/") + + +def read(root, rel): + with open(os.path.join(root, rel.lstrip("/")), encoding="utf-8") as f: + return f.read() + + +def post_mapping(old_dir, new_dir): + """Old news addresses (/news/slug.html) to the new dated ones, found by name in the new output.""" + new_posts = {} + for rel in html_files(new_dir): + m = re.fullmatch(r"/news/(\d{4})/(\d{2})/([a-z0-9-]+)\.html", rel) + if m: + new_posts[m.group(3)] = rel + mapping = {} + for rel in html_files(old_dir): + m = re.fullmatch(r"/news/([a-z0-9-]+)\.html", rel) + if m and m.group(1) in new_posts: + mapping[rel] = new_posts[m.group(1)] + return mapping + + +def main(old_dir, new_dir): + mapping = post_mapping(old_dir, new_dir) + bad = 0 + for rel in sorted(html_files(old_dir)): + new_rel = mapping.get(rel, rel) + if not os.path.exists(os.path.join(new_dir, new_rel.lstrip("/"))): + print(f"MISSING in new output: {new_rel}") + bad += 1 + continue + diffs = compare_pages(remap(read(old_dir, rel), mapping), read(new_dir, new_rel), post=rel in mapping) + if diffs: + bad += 1 + print(f"DIFFERENT: {rel}" + (f" -> {new_rel}" if new_rel != rel else "")) + print("\n".join(diffs[:60])) + extra = sorted(set(html_files(new_dir)) - {mapping.get(r, r) for r in html_files(old_dir)}) + for rel in extra: + print(f"new page: {rel}") + print(f"compared {len(list(html_files(old_dir)))} pages, {bad} differ") + return 1 if bad else 0 + + +if __name__ == "__main__": + if len(sys.argv) != 3: + sys.exit(__doc__) + sys.exit(main(sys.argv[1], sys.argv[2])) diff --git a/tools/migrate.py b/tools/migrate.py new file mode 100644 index 0000000..862b108 --- /dev/null +++ b/tools/migrate.py @@ -0,0 +1,256 @@ +#!/usr/bin/env python3 +"""One-off migration of the kmalloc.org site from build.py to motorino. + +Usage: migrate.py [--site DIR] [--old-out DIR] + +It builds the current site with build.py (the reference, saved in --old-out), then writes the new layout in +place: pages as Markdown in content//, news with the new header, the reduced site.json and lang files, +and the new templates. The pages are converted from the HTML that build.py produced, so their text is the +same by construction; HTML that Markdown cannot express (a table, an image, a heading with a class) is kept +as raw HTML in the file. Delete this tool once the new site is live.""" +import argparse +import ast +import json +import os +import re +import shutil +import subprocess +import sys + +# ---------------------------------------------------------------- HTML to Markdown + +BLOCK = re.compile(r"\s*(?:()|<(p|h[1-6]|ul|ol|table|blockquote|div)\b([^>]*)>(.*?))", re.S) +ID_ONLY = re.compile(r'^\s*id="([^"]+)"\s*$') + + +def inline_to_md(inner): + """Inline HTML as Markdown, or None when it has markup that Markdown cannot say.""" + s = inner.strip() + s = re.sub(r'(.*?)', r"[\2](\1)", s, flags=re.S) + s = re.sub(r"(.*?)", r"**\1**", s, flags=re.S) + s = re.sub(r"(.*?)", r"*\1*", s, flags=re.S) + s = re.sub(r"(.*?)", r"`\1`", s, flags=re.S) + if "<" in s: + return None + return "\n".join(line.strip() for line in s.splitlines()) + + +def block_to_md(match): + """One top-level block as Markdown, or as the raw HTML it came from.""" + raw = match.group(0).strip() + comment, tag, attrs, inner = match.groups() + if comment: + return raw + if tag == "p" and not attrs.strip(): + text = inline_to_md(inner) + return text if text is not None else raw + if re.fullmatch(r"h[1-6]", tag): + text = inline_to_md(inner) + heading_id = ID_ONLY.match(attrs) + if text is not None and (not attrs.strip() or heading_id): + line = "#" * int(tag[1]) + " " + text + return line + (" {#" + heading_id.group(1) + "}" if heading_id else "") + return raw + if tag == "ul" and not attrs.strip(): + items = re.findall(r"
    • (.*?)
    • ", inner, flags=re.S) + texts = [inline_to_md(i) for i in items] + if items and all(t is not None for t in texts) and not re.sub(r"
    • .*?
    • |\s", "", inner, flags=re.S): + return "\n".join("- " + t for t in texts) + return raw + + +def html_to_md(html): + """Convert the body of a page: the blocks of build.py output become Markdown, the rest stays HTML.""" + parts, pos = [], 0 + while True: + if not html[pos:].strip(): + break + m = BLOCK.match(html, pos) + if not m: + raise ValueError(f"unconvertible HTML near: {html[pos:pos + 80].strip()!r}") + parts.append(block_to_md(m)) + pos = m.end() + return "\n\n".join(parts) + "\n" + + +def restore(md, values): + """Put {{key}} back where a value of site.json appears as text, longest values first.""" + for key, value in sorted(values.items(), key=lambda kv: -len(kv[1])): + if value: + md = md.replace(value, "{{" + key + "}}") + return md + + +def mark_latest_news(html): + """The news block of the home page becomes the {{latest_news}} placeholder.""" + return re.sub(r'

      .*?

    \n?', "

    {{latest_news}}

    \n", html, count=1, flags=re.S) + + +def mark_news_list(html): + """The list of the news page becomes the {{news_list}} placeholder.""" + return re.sub(r"
      .*?
    ", "

    {{news_list}}

    ", html, count=1, flags=re.S) + + +# ---------------------------------------------------------------- pages and news + +def extract_content(page_html): + """The part of a built page between the header and the footer.""" + m = re.search(r"\n\n(.*)\n