Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- main
- cd-bund

jobs:
deploy:
Expand All @@ -17,12 +17,9 @@ jobs:
- run: npm ci
- run: npm run build
env:
DEFAULT_COUNTRY_SECTION: italy
ELASTIC_URL: "https://elasticsearch.developers.italia.it/indicepa_pec/_search"
DEFAULT_COUNTRY_SECTION: switzerland
- run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/italia/publiccode-editor.git
echo publiccode-editor.developers.italia.it > dist/CNAME

npm run deploy -m "Automated deployment: ${CIRCLE_SHA1} [ci skip]"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/swiss/publiccode-editor.git
npm run gdeploy -m "Automated deployment: ${CIRCLE_SHA1} [ci skip]"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/publiccode-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: italia/publiccode-parser-action@v1.3.3
- uses: italia/publiccode-parser-action@v1.4.2
with:
publiccode: 'publiccode.yml'
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @olibrian
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
# publiccode yml Editor

This project is a fork of [italia/publiccode-editor](https://github.com/italia/publiccode-editor), customized to align with the Design System of the Swiss Confederation 🇨🇭.

For details about the Swiss Design System, see:

- [Design System for the Swiss Confederation (GitHub)](https://github.com/swiss/designsystem)
- [Design System for the Swiss Confederation (Stoybook)](https://swiss.github.io/designsystem/?path=/docs/get-started--docs)
- [Design System Core Library (Figma)](https://www.figma.com/design/3UYgqxmcJbG0hpWuti3y8U/🇨🇭Design-System-Core-Library)

The application is live at: https://swiss.github.io/publiccode-editor/

Below is the original README for the Italian version.

---

![Build Status](https://img.shields.io/circleci/project/github/italia/publiccode-editor/master.svg) ![Issues](https://img.shields.io/github/issues/italia/publiccode-editor.svg) ![License](https://img.shields.io/github/license/italia/publiccode-editor.svg) [![Join the #publiccode channel](https://img.shields.io/badge/Slack%20channel-%23publiccode-blue.svg?logo=slack)](https://developersitalia.slack.com/messages/CAM3F785T)
[![Get invited](https://slack.developers.italia.it/badge.svg)](https://slack.developers.italia.it/)

Expand Down
37 changes: 37 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# RELEASE

The release process is automated using Github Actions. This automated process mirrors the manual one currently used.

## Branch workflow

### Start a release

Everytime a new release starts, you have to run the action *create-release-pr*.
It will ask if you wanna relase a patch, a minor or a major.
After that, it will:

- Generate a new version of the package
- Create a branch with this name release/*\<new-version>* starting from *develop*
- It will update the *package.json*
- It will update the *publiccode.yml*
- It will open a PR on that branch

The PR process has the aim of giving the freedom to do manual editing.
You MUST update *CHANGELOG.md* manually before closing the PR.

### Finishing a release

Another Github Action, *finish-release*, is triggered when the PR is closed on *main*.

This action will:

- Create a tag and push it
- Merge *main* on *develop*
- Create a *release package* on Github

It's highly recommended to edit manually the description of the release.
It will be automated in the next releases.

## Future enhancements

This worfklow will be changed with the adoption of more solid and more robust solutions.
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
"prebuild": "npm run build:wasm && npm run build:licenses",
"build:providers-oembed": "tsx scripts/getProvidersOembed.ts src/generated/providers-oembed.json",
"build:licenses": "mkdir -p src/generated && tsx scripts/genLicenseList.ts src/generated/licenses.json",
"build:organisations": "tsx src/app/data/generateOrganisations.ts",
"build:wasm": "cp \"$(go env GOROOT)/misc/wasm/wasm_exec.js\" public && GOOS=js GOARCH=wasm go build -o public/main.wasm src/wasm/main.go",
"serve": "rm -rf dist; npm run build && http-server dist",
"format": "prettier --write 'src/**/*.{ts,tsx,scss,css,json}' ",
"test": "jest --passWithNoTests",
"gdeploy": "gh-pages -u 'Deploy Bot <no-reply@puzzle.ch>' -d dist",
"deploy": "gh-pages -u 'Deploy Bot <no-reply@teamdigitale.governo.it>' -d dist",
"release": "release-it",
"postinstall": "npm run build:organisations",
"_postinstall": "patch-package"
},
"keywords": [
Expand All @@ -28,7 +31,7 @@
],
"repository": {
"type": "git",
"url": "git@github.com:italia/publiccode-editor.git"
"url": "git@github.com:swiss/publiccode-editor.git"
},
"jest": {
"moduleNameMapper": {
Expand All @@ -43,7 +46,7 @@
"@uiw/react-md-editor": "^4.0.5",
"accessible-autocomplete": "^3.0.1",
"bootstrap": "^5.3.6",
"bootstrap-italia": "^2.14.0",
"bootstrap-switzerland": "swiss/bootstrap-switzerland#gh-pages",
"copy-to-clipboard": "^3.3.3",
"countries-list": "^3.0.6",
"date-fns": "^4.1.0",
Expand Down
Binary file modified public/assets/img/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 38 additions & 53 deletions publiccode.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,54 @@
publiccodeYmlVersion: "0.3"
publiccodeYmlVersion: 0.5.0
name: Publiccode Editor
url: https://github.com/swiss/publiccode-editor
softwareVersion: 2.1.0
releaseDate: 2025-07-03
platforms:
- web
categories:
- it-development
- application-development
developmentStatus: development
softwareType: standalone/web
organisation:
uri: https://ld.admin.ch/FCh
name: Bundeskanzlei
description:
it:
features:
- Generazione di publiccode.yml
- Modifica di publiccode.yml
- Validazione di publiccode.yml
- Importazione di publiccode.yml tramite URL
- Possibilità di gestire diverse lingue
genericName: Generatore di publiccode.yml
longDescription: >
publiccode editor è un'applicazione web per generare file

[`publiccode.yml`](https://github.com/italia/publiccode.yml) validi.

Compilando il form, genera automaticamente un file YAML compatible con
de-CH:
localisedName: publiccode.yml Editor
shortDescription: Ein Web-Editor zur Erstellung und Validierung von publiccode.yml-Dateien.
longDescription: >-
Der PublicCode-Editor ist eine Webanwendung zur Erstellung gültiger
publiccode.yml-Dateien.

l'ultima versione dello standard publiccode. Questo file può essere
copiato

o scaricato localmente per essere poi inserito nel repository di
destinazione.
Basierend auf den Angaben im Formular wird eine YAML-Datei generiert, die
dem neuesten PublicCode-Standard entspricht. Die Datei kann direkt kopiert
oder heruntergeladen und in ein Repository übernommen werden.


Può inoltre essere usato come validatore. È possible incollare o importare

un file `publiccode.yml` esistente all'interno dell'editor. L'editor
validerà

il documento importato e aiuterà a correggere eventuali errori.
shortDescription: Un editor web per generare e validare file publiccode.yml.
Der Editor kann auch zur Validierung bestehender publiccode.yml-Dateien
verwendet werden.
features:
- Generierung von publiccode.yml
- Modifikation von publiccode.yml
- Validierung von publiccode.yml
- Import von publiccode.yml über URL
- Mehrere Sprachen können verwaltet werden
screenshots:
- screenshot.png
developmentStatus: stable
it:
countryExtensionVersion: "0.2"
piattaforme:
anpr: false
cie: false
pagopa: false
spid: false
riuso:
codiceIPA: pcm
legal:
license: AGPL-3.0-or-later
authorsFile: AUTHORS.md
maintenance:
type: community
contacts:
- name: Olivier Brian
email: brian@puzzle.ch
- name: Claudia Asti
email: asti@puzzle.ch
localisation:
localisationReady: true
availableLanguages:
- de
- en
- fr
- it
- nl
localisationReady: true
maintenance:
contacts:
- name: Leonardo Favario
- name: Alessandro Sebastiani
- name: Fabio Bonelli
type: community
name: publiccode editor
platforms:
- web
releaseDate: 2025-07-23
softwareType: standalone/web
softwareVersion: 2.1.1
url: https://github.com/italia/publiccode-editor
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "bootstrap-italia/dist/css/bootstrap-italia.min.css";
import "bootstrap-switzerland/dist/css/bootstrap-switzerland.min.css";
import { NotificationManager } from "design-react-kit";
import { useState } from "react";
import { useTranslation } from "react-i18next";
Expand Down
Loading
Loading