exemple json doc

This commit is contained in:
Tykayn 2023-07-19 23:06:55 +02:00 committed by tykayn
parent 1b844ce08b
commit e6b62080e1
3 changed files with 61568 additions and 61516 deletions

View File

@ -6,6 +6,7 @@ Ce dépot permet plusieurs choses:
- faire fonctionner un serveur web express / node pour afficher un compte rendu HTML interprêtant un fichier json représentant des tâches orgmode exportées à partir d'ox-json dans emacs. - faire fonctionner un serveur web express / node pour afficher un compte rendu HTML interprêtant un fichier json représentant des tâches orgmode exportées à partir d'ox-json dans emacs.
pour le lancer: npm start. pour le lancer: npm start.
- convertir des exports de services numériques en fichier tsv et json, afin d'être utilisé par les autres parties pour en faire un compte rendu en html. - convertir des exports de services numériques en fichier tsv et json, afin d'être utilisé par les autres parties pour en faire un compte rendu en html.
- un convertisseur de site wordpress vers orgmode. La source est un export au format json de la table des posts d'un site wordpress, réalisé dans un client de base de données comme phpmyadmin ou un IDE tel que PhpStorm.
![report in preview](screenshot.png "screenshot of the report in html") ![report in preview](screenshot.png "screenshot of the report in html")
# Prérequis # Prérequis

68
orgmode_format.md Normal file
View File

@ -0,0 +1,68 @@
# format json à partir d'un fichier orgmode
Exemple de fichier json exporté par ox-json
```json
{
"$$data_type": "org-document",
"properties": {
"title": [
"Trucs pour apprendre à bien utiliser orgmode"
],
"filetags": [],
"author": [
"tykayn"
],
"creator": "Emacs 27.1 (Org mode 9.5.3)",
"date": [],
"description": [],
"email": "contact@cipherbliss.com",
"language": "en"
},
"contents": [
{
"$$data_type": "org-node",
"type": "section",
"ref": "orgfa6b7c4",
"properties": {
"robust-begin": 1,
"robust-end": 131,
"post-blank": 2,
"post-affiliated": 1,
"mode": "first-section",
"granularity": null
},
"contents": [
{
"$$data_type": "org-node",
"type": "paragraph",
"ref": "orge46bba4",
"properties": {
"post-blank": 0,
"post-affiliated": 49,
"mode": "property-drawer",
"granularity": null
},
"contents": [
"Archived entries from file /home/tykayn/Nextcloud/textes/orgmode/exported",
{
"$$data_type": "org-node",
"type": "subscript",
"ref": "orgf62d4c0",
"properties": {
"use-brackets-p": false,
"post-blank": 0
},
"contents": [
"tasks.org"
]
},
"\n"
]
}
]
}
]
}
```

View File

@ -4039,7 +4039,6 @@ null,
"type": "headline", "type": "headline",
"ref": "orgc40dde0", "ref": "orgc40dde0",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -4107,7 +4106,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org145665e", "ref": "org145665e",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -45918,7 +45916,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org5e0891b", "ref": "org5e0891b",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -45981,7 +45978,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org2d65cb0", "ref": "org2d65cb0",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -46044,7 +46040,6 @@ null,
"type": "headline", "type": "headline",
"ref": "orgf3b2407", "ref": "orgf3b2407",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -46684,7 +46679,6 @@ null,
"type": "headline", "type": "headline",
"ref": "orge3d6cef", "ref": "orge3d6cef",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -46762,7 +46756,6 @@ null,
"type": "headline", "type": "headline",
"ref": "orgab5a80e", "ref": "orgab5a80e",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -48296,7 +48289,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org003cdfa", "ref": "org003cdfa",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -50481,7 +50473,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org3f4fafd", "ref": "org3f4fafd",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -50626,7 +50617,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org3e78984", "ref": "org3e78984",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -52850,7 +52840,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org9e6dc8a", "ref": "org9e6dc8a",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -56463,7 +56452,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org5962784", "ref": "org5962784",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -57647,7 +57635,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org274723b", "ref": "org274723b",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -57710,7 +57697,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org2b79388", "ref": "org2b79388",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -57809,7 +57795,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org9ccefaf", "ref": "org9ccefaf",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -57919,7 +57904,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org3ea2e88", "ref": "org3ea2e88",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],
@ -58001,7 +57985,6 @@ null,
"type": "headline", "type": "headline",
"ref": "org204464e", "ref": "org204464e",
"drawer": { "drawer": {
}, },
"properties": { "properties": {
"tags-all": [], "tags-all": [],