Différences entre versions de « Xtof/micropub »

De Mi caja de notas

< Xtof
(Page créée avec « Intention : publier à partir de micropub/clients. Recherche en cours pour implémenter un point de terminaison micropub sur GoHugo. - ~~~~ == [[2018-123]... »)
 
 
(41 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
Intention : publier à partir de [[micropub/clients]].  
+
Intention : Publier sur un site web personnel à partir de quelques [[micropub/clients]]. Recherche en cours : implémenter un point de terminaison [[micropub]] sur [[GoHugo]]. -- <span class="h-card" style="white-space:nowrap">{{sparkline|http://ducamp.me/images/d/d3/Portrait-xtof.png}} [[User:Christopheducamp.com|xtof]]</span> 7 septembre 2018 à 06:31 (UTC)
Recherche en cours pour implémenter un point de terminaison [[micropub]] sur [[GoHugo]]. - <span class="h-card" style="white-space:nowrap">{{sparkline|http://ducamp.me/images/d/d3/Portrait-xtof.png}} [[User:Christopheducamp.com|xtof]]</span> 3 mai 2018 à 07:54 (UTC)
+
== [[2018-250]] ==
 +
''7 septembre 2018''
  
 +
Briefing Glenux sur [[micropub]] > http://xtof.me/2018/09/07/19247/
 +
Belle discussion sur les UIs.
 +
Structuré un repo de travail : https://github.com/glenux/awesome-micropub
  
  
== [[2018-123]] : [[micropub]] ==
+
=== Essai Quill ===
  
Objet : mettre à jour un site motorisé par[[GoHugo]] à partir d'un mobile ou d'interfaces-clients externes ([[micropub/clients]]).  
+
Retour de vacances sur mon site personnel abandonné.
 +
Essai de post avec [[Quill]] (micropub) vers christopheducamp.com. Les fichiers "montent" bien vers  Github. ex. sur la dernière note ''sans titre'' postée.  
  
Repo de travail pour installer un point de terminaison micropub : https://github.com/voxpelli/webpage-micropub-to-github
+
```
 +
---
 +
layout: posts
 +
date: '2018-09-07T05:20:47.928Z'
 +
title: ''
 +
mf-location:
 +
  - 'geo:48.88589,2.35019;u=20'
 +
tags: micropub indieweb
 +
slug: '19247'
 +
mf-photo:
 +
  - >-
 +
    https://christopheducamp.com/static/img/2018-09-19247/micropub-rocks-2018-09-07-07-11-40.png
 +
category: social
 +
---
 +
14h00-18H00 Session découverte et implémentation #micropub #indieweb avec Glenn.
 +
Intention personnelle : poursuivre quelques travaux de configuration d&#39;un point de terminaison #micropub sur une motorisation gohugo.io
 +
Appelez-moi si ça vous dit de passer et venir nous aider.
  
== Pourquoi "micropub-to-github"  ==
+
```
  
La solution initialement conçue pour accepter un post provenant de n'importe quel client micropub sait convertir le post en un commit compatible-jekyll incluant le front matter en YAML et le contenu. Quelques collègues  indieweb parviennent à le faire fonctionner pour Hugo.
+
Les erreurs trouvées dans la fenêtre de terminal lors de la production Hugo.  
 +
 
  
=== Statut : recherche ==
+
```
 +
xtof@MacBook:~/sites/xtof-hugo-zen$ hugo server
 +
Building sites … WARNING: YAML data/frontmatter with keys of type int is since Hugo 0.37 converted to strings
 +
ERROR 2018/09/07 07:56:14 Error while rendering "page" in "post/": template: _default/single.html:20:36: executing "_default/single.html" at <.Params.tags>: range can't iterate over 100daysofcode python programmation
 +
ERROR 2018/09/07 07:56:14 Error while rendering "page" in "post/": template: _default/single.html:20:36: executing "_default/single.html" at <.Params.tags>: range can't iterate over micropub indieweb
 +
ERROR 2018/09/07 07:56:14 Error while rendering "home" in "": template: index.html:14:50: executing "index.html" at <.Params.tags>: range can't iterate over micropub indieweb
  
* déploiement de `webpage-micropub-to-github` vers Heroku (via le bouton Heroku). L'app est accessible sur <https://dashboard.heroku.com/apps/micropub-xtof/deploy/heroku-git
+
```
>.
+
Regard sur la ligne de tags YAML
* Réglé les 6 variables d'environnement requises + 3 variables facultatives (type de posts, chemin + nom de fichier et répertoire img).
 
  
Détails ci-dessous :  
+
    tags: micropub indieweb
  
[[File:micropub-xtof-settings-Heroku.png|400px]]
+
Correction manuelle : remise entre crochets et séparation par des virgules.
  
Note : Les variables d'output `MICROPUB_FILENAME_STYLE` et `MICROPUB_MEDIA_FILES_STYLE` pour régler les noms de fichier et chemin/ noms de fichier et chemin pour les images doivent être placées entre guillemets.
+
Comment régler le point de terminaison, pour parvenir à une production d'une ligne de tags compatible avec la syntaxe du FrontMatter GoHugo ? -- <span class="h-card" style="white-space:nowrap">{{sparkline|http://ducamp.me/images/d/d3/Portrait-xtof.png}} [[User:Christopheducamp.com|xtof]]</span> 7 septembre 2018 à 06:27 (UTC)
  
* Installé les 3 points de terminaison micropub, authorization et token dans le `header` html :
+
== [[2018-249]] ==
 +
=== Essai indiebookclub.biz ===
  
```
+
Interface de publication : https://indiebookclub.biz/
    <link rel="micropub" href="https://micropub-xtof.herokuapp.com/micropub/main" />
 
  
    <link rel="authorization_endpoint" href="https://indieauth.com/auth">
+
[https://github.com/ChristopheDucamp/xtof-hugo-zen/blob/master/content/post/2018-09-06-35479.md cf le post en md sur github]
  
    <link rel="token_endpoint" href="https://tokens.indieauth.com/token" />
 
 
```
 
```
  
== Résultats ==
 
 
Les essais simples de publication de notes sur Quill '''sans image''' fonctionnent. Je récupère bien un post généré sur mon repo github que je dois rapatrier sur ma machine locale.
 
 
ex. :
 
 
```
 
 
---
 
---
 
layout: posts
 
layout: posts
date: '2018-05-02T05:12:06.556Z'
+
date: '2018-09-06T09:51:19.403Z'
 
title: ''
 
title: ''
tags: microblog micropub
+
mf-summary:
slug: '18726'
+
  - >-
 +
    Currently reading: Python pour les Kids by Jason R. Briggs, ISBN:
 +
    9782212140880
 +
mf-read-status:
 +
  - reading
 +
mf-read-of:
 +
  - type:
 +
      - h-cite
 +
    properties:
 +
      name:
 +
        - Python pour les Kids
 +
      author:
 +
        - Jason R. Briggs
 +
      uid:
 +
        - 'isbn:9782212140880'
 +
tags: 100daysofcode python programmation
 +
slug: '35479'
 
category: social
 
category: social
 +
---
 +
```
 +
 +
 +
 +
Pas de rendu dans Hugo... tags à nettoyer. Pas de texte
 +
 +
== [[2018-131]] ==
 +
 +
 +
* essayer les points de terminaison [[micropub]] sur une instance Hugo hébergée sur GitHub ou gandi (solutions php)
 +
 +
1. chez skippy https://github.com/skpy/micropub
 +
1. chez dgold https://github.com/dg01d/nanopub/blob/master/INSTALLATION.md
 +
 +
 +
== [[2018-124]] : [[micropub]] ==
 +
 +
Objet : mettre à jour un site motorisé par[[GoHugo]] à partir d'un mobile ou d'interfaces-clients externes ([[micropub/clients]]).
  
---
 
Microbloguer dans Jekyll : Inspiré par quelques réglages de Micropub webpage-micropub-to-github,  l&#39;app qui crée un point de terminaison micropub pour les sites Jekyll hébergés sur GitHub pages.
 
  
```
+
tentative point de terminaison avec app Heroku archivée sur [[xtof/micropub-to-github]]
  
 +
== liens et inspirations ==
  
Essai [[quill]] avec titre + citation + gif
+
''alternatives de collègues indieweb motorisés Hugo avec point de terminaison [[micropub]]
  
```
+
1. Daniel Goldsmith a créé [[iwc:nanopub]]. Son premier post micropub date du 2017-07-14 https://ascraeus.org/micro/1500061827/ https://github.com/dg01d/nanopub/blob/master/INSTALLATION.md Daniel est joignable sur https://micro.blog/dgold - cf son flux micro  https://ascraeus.org/micro/
---
+
1. Skippy aka Scott https://skippy.net/ > point de terminaison PHP minimal https://github.com/skpy/micropub
layout: posts
+
1. [Keith Grant](https://keithjgrant.com) est le créateur de l'extension navigateur [[Omnibear]]. Repo accessible sur https://github.com/keithjgrant/keithjgrant.com - Son point de terminaison micropub est produit avec docker.
date: '2018-05-03T07:08:24.887Z'
+
1. Marty https://martymcgui.re/2017/01/26/122700/ a un point de terminaison micropub construit en Python
title: 'Show, not tell, what you know'
+
1. Pretty Good Hat https://prettygoodhat.com/about/ a implémenté [[nanopub]]  https://prettygoodhat.com/post/2018-01-14-retuning-indieweb/ + https://prettygoodhat.com/post/further-indieweb-adventures/
tags: stoicisme
+
1. Calum Ryan (2017-02) configuration micropub par classe php > https://calumryan.com/learning/getting-started-with-micropub/
mf-mp-slug:
 
  - show-not-tell
 
slug: show-not-tell-what-you
 
---
 
> Those who receive the bare theories immediately want to spew them, as an upset stomach does its food. First digest your theories and you won’t throw them up. Otherwise they will be raw, spoiled, and not nourishing. After you’ve digested them, show us the changes in your reasoned choices, just like the shoulders of gymnasts display their diet and training, and as the craft of artisans show in what they’ve learned.
 
  
—EPICTETUS, DISCOURSES, 3.21.1–3
 
![](data:image/gif;base64,R0lGODlheADLAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4ODg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVF...2IVsqAU5kINdkAZx2AYv4IZ3uIZo2AYZkQd6gAd3KCfbCwgAADs=)
 
  
```
 
  
Travaux à faire :
+
''Autres motorisations que GoHugo''
  
- mise en forme de la ligne de tags
+
1. Rhiaro et son "Minimum Viable micropub" https://rhiaro.co.uk/2015/04/minimum-viable-micropub
- orienter vers "notes" et concevoir un layout de '''notes sans titre'''
+
1. {{adactio}} https://adactio.com/journal/7698
 +
1. Inspiration [[Jekyll]] [[micro.blog]] : Article de Fiona Voss / motorisation [[Jekyll]] <http://fionavoss.blog/2018/04/01/microblogging-in-jekyll>
  
== liens ==
 
''liens indieweb à compléter, relire et classer''
 
  
Une recherche dans la jungle de collègues indieweb ayant configuré un point de terminaison [[micropub]] [[iwc:token-endpoint]] :
 
  
1. Daniel Goldsmith avec [[nanopub]] Embracing the IndieWeb https://ascraeus.org/embracing-the-indieweb/ - Daniel a aussi un micro.blog https://micro.blog/dgold  cf aussi https://ascraeus.org/micro/ post démo https://ascraeus.org/micro/1500061827/
+
''Autres liens à classer ''
2. jnjosh thème "internet weblog" https://jnjosh.com/microposts/19431/ https://micro.blog/jnjosh# repo https://github.com/jnjosh/jnjosh.com (micropub mais pas de webmention)
 
3. Keith Grant  (créateur de l'extension [[Omnibear]]]) https://keithjgrant.com
 
repo https://github.com/keithjgrant/keithjgrant.com - micropub https://micropub.keithjgrant.com/micropub/main produite avec docker
 
4. Skippy https://github.com/skpy/hugo-skippy.is aka Scott https://skippy.net/
 
5. Rhiaro et son "Minimum Viable micropub" https://rhiaro.co.uk/2015/04/minimum-viable-micropub
 
6. Pretty Good Hat à étudier https://prettygoodhat.com/about/  installation avec le nanopub de daniel https://github.com/dg01d/nanopub/blob/master/INSTALLATION.md
 
https://prettygoodhat.com/post/2018-01-14-retuning-indieweb/ + https://prettygoodhat.com/post/further-indieweb-adventures/
 
7. Calum Ryan (2017-02) config micropub par classe php > https://calumryan.com/learning/getting-started-with-micropub/
 
8. https://martymcgui.re/2017/01/26/122700/ un point de terminaison micropub en python
 
9. {{adactio}} https://adactio.com/journal/7698
 
10. Amit https://www.amitgawande.com/ (cf son post de recherche https://micro.blog/amit/353415)  Post de setup https://www.amitgawande.com/indiewebify-hugo-website/
 
  
cf aussi
 
  
* Inspiration [[Jekyll]] [[micro.blog]] : Article de Fiona Voss qui a choisi la motorisation [[Jekyll]] <http://fionavoss.blog/2018/04/01/microblogging-in-jekyll>
+
1. Kaushalmodi cherche activement à implémenter micropub sur son GoHugo > https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/blob/master/config.toml (webmentions et search)
* Anyone for webmention > https://discourse.gohugo.io/t/anyone-for-webmention/10411/4
 
* Kaushalmodi (en quête) > https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/blob/master/config.toml (webmentions et search) pas de micropub
 

Version actuelle datée du 7 septembre 2018 à 15:15

Intention : Publier sur un site web personnel à partir de quelques micropub/clients. Recherche en cours : implémenter un point de terminaison micropub sur GoHugo. -- portrait xtof 7 septembre 2018 à 06:31 (UTC)

2018-250

7 septembre 2018

Briefing Glenux sur micropub > http://xtof.me/2018/09/07/19247/ Belle discussion sur les UIs. Structuré un repo de travail : https://github.com/glenux/awesome-micropub


Essai Quill

Retour de vacances sur mon site personnel abandonné. Essai de post avec Quill (micropub) vers christopheducamp.com. Les fichiers "montent" bien vers Github. ex. sur la dernière note sans titre postée.

``` --- layout: posts date: '2018-09-07T05:20:47.928Z' title: mf-location:

 - 'geo:48.88589,2.35019;u=20'

tags: micropub indieweb slug: '19247' mf-photo:

 - >-
   https://christopheducamp.com/static/img/2018-09-19247/micropub-rocks-2018-09-07-07-11-40.png

category: social --- 14h00-18H00 Session découverte et implémentation #micropub #indieweb avec Glenn. Intention personnelle : poursuivre quelques travaux de configuration d'un point de terminaison #micropub sur une motorisation gohugo.io Appelez-moi si ça vous dit de passer et venir nous aider.

```

Les erreurs trouvées dans la fenêtre de terminal lors de la production Hugo.


``` xtof@MacBook:~/sites/xtof-hugo-zen$ hugo server Building sites … WARNING: YAML data/frontmatter with keys of type int is since Hugo 0.37 converted to strings ERROR 2018/09/07 07:56:14 Error while rendering "page" in "post/": template: _default/single.html:20:36: executing "_default/single.html" at <.Params.tags>: range can't iterate over 100daysofcode python programmation ERROR 2018/09/07 07:56:14 Error while rendering "page" in "post/": template: _default/single.html:20:36: executing "_default/single.html" at <.Params.tags>: range can't iterate over micropub indieweb ERROR 2018/09/07 07:56:14 Error while rendering "home" in "": template: index.html:14:50: executing "index.html" at <.Params.tags>: range can't iterate over micropub indieweb

``` Regard sur la ligne de tags YAML

   tags: micropub indieweb

Correction manuelle : remise entre crochets et séparation par des virgules.

Comment régler le point de terminaison, pour parvenir à une production d'une ligne de tags compatible avec la syntaxe du FrontMatter GoHugo ? -- portrait xtof 7 septembre 2018 à 06:27 (UTC)

2018-249

Essai indiebookclub.biz

Interface de publication : https://indiebookclub.biz/

cf le post en md sur github

```

--- layout: posts date: '2018-09-06T09:51:19.403Z' title: mf-summary:

 - >-
   Currently reading: Python pour les Kids by Jason R. Briggs, ISBN:
   9782212140880

mf-read-status:

 - reading

mf-read-of:

 - type:
     - h-cite
   properties:
     name:
       - Python pour les Kids
     author:
       - Jason R. Briggs
     uid:
       - 'isbn:9782212140880'

tags: 100daysofcode python programmation slug: '35479' category: social --- ```


Pas de rendu dans Hugo... tags à nettoyer. Pas de texte

2018-131

  • essayer les points de terminaison micropub sur une instance Hugo hébergée sur GitHub ou gandi (solutions php)

1. chez skippy https://github.com/skpy/micropub 1. chez dgold https://github.com/dg01d/nanopub/blob/master/INSTALLATION.md


2018-124 : micropub

Objet : mettre à jour un site motorisé parGoHugo à partir d'un mobile ou d'interfaces-clients externes (micropub/clients).


tentative point de terminaison avec app Heroku archivée sur xtof/micropub-to-github

liens et inspirations

alternatives de collègues indieweb motorisés Hugo avec point de terminaison micropub

1. Daniel Goldsmith a créé iwc:nanopub. Son premier post micropub date du 2017-07-14 https://ascraeus.org/micro/1500061827/ https://github.com/dg01d/nanopub/blob/master/INSTALLATION.md Daniel est joignable sur https://micro.blog/dgold - cf son flux micro https://ascraeus.org/micro/ 1. Skippy aka Scott https://skippy.net/ > point de terminaison PHP minimal https://github.com/skpy/micropub 1. [Keith Grant](https://keithjgrant.com) est le créateur de l'extension navigateur Omnibear. Repo accessible sur https://github.com/keithjgrant/keithjgrant.com - Son point de terminaison micropub est produit avec docker. 1. Marty https://martymcgui.re/2017/01/26/122700/ a un point de terminaison micropub construit en Python 1. Pretty Good Hat https://prettygoodhat.com/about/ a implémenté nanopub https://prettygoodhat.com/post/2018-01-14-retuning-indieweb/ + https://prettygoodhat.com/post/further-indieweb-adventures/ 1. Calum Ryan (2017-02) configuration micropub par classe php > https://calumryan.com/learning/getting-started-with-micropub/


Autres motorisations que GoHugo

1. Rhiaro et son "Minimum Viable micropub" https://rhiaro.co.uk/2015/04/minimum-viable-micropub 1. portrait Jeremy Keith https://adactio.com/journal/7698 1. Inspiration Jekyll micro.blog : Article de Fiona Voss / motorisation Jekyll <http://fionavoss.blog/2018/04/01/microblogging-in-jekyll>


Autres liens à classer


1. Kaushalmodi cherche activement à implémenter micropub sur son GoHugo > https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/blob/master/config.toml (webmentions et search)