Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.md 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. title: Esthétique et API
  2. Je n’ai finalement [pas pu résister à une réécriture partielle](/david/stream/2015/01/06/) de mon outil dans le but d’avoir une API plus jolie tirant partie des [dernières possibilités de fabric](http://docs.fabfile.org/en/latest/usage/tasks.html) :
  3. :::bash
  4. $ fab -l
  5. Available commands:
  6. generate_all GENERATE ALL THE THINGS!!! WARNING: boolean param.
  7. caches.generate (Re)generate caches MD files into HTML files.
  8. caches.new Cache the given `url` into a MD and a HTML file.
  9. family.generate Generate the family history.
  10. notes.generate Generate notes and archives for the stream.
  11. notes.new Generate the template file to post a note.
  12. notes.publish Publish the daily note after generating the feed.
  13. pages.generate Generate all static pages.
  14. posts.generate Generate posts and archives for the blog.
  15. posts.publish Publish the article after generating the feed.
  16. server.commit Add/rm files and then commit with the `message`.
  17. server.deploy Push/pull the repository from the production server.
  18. server.errors Display latest 200 errors lines from production.
  19. server.infos Display infos (mail+web) about disk usage in prod.
  20. server.log Display access logs continuously from production.
  21. Pour initier cette note :
  22. :::bash
  23. $ fab notes.new:"Esthétique et API"
  24. [larlet@ssh.alwaysdata.com] Executing task 'notes.new'
  25. [localhost] local: open -a "iA Writer" "larlet.fr/david/stream/2015/01/16/index.md"
  26. Done.
  27. Pour la déployer :
  28. :::bash
  29. $ fab notes.publish
  30. [larlet@ssh.alwaysdata.com] Executing task 'notes.publish'
  31. Done: http://larlet.dev:8089/david/stream/2015/
  32. Done: http://larlet.dev:8089/david/
  33. Feed: ★ Livre et diffusion (2015-01-07)
  34. Feed: ★ Cours IUT : jQuery et Bonus (2015-01-06)
  35. Feed: ★ Publier, enseigner et cultiver (2015-01-03)
  36. Feed: ★ Rétrospective Mozilla (2014-12-27)
  37. Feed: ★ Père Noël (2014-12-22)
  38. Feed: Acheter des polices (2015-01-15)
  39. Feed: S’adapter à la luminosité ambiante (2015-01-14)
  40. Feed: Régulateur de consommation (2015-01-13)
  41. Feed: Teenagers, AirDrop et P2P (2015-01-12)
  42. Feed: Code et écriture (2015-01-11)
  43. Feed: Devenir conférencier (2015-01-10)
  44. Feed: Unanimisme émotionnel (2015-01-09)
  45. Feed: Kilian Jornet et Aconcagua (2015-01-08)
  46. Feed: Bouncer IRC et backlog (2015-01-07)
  47. Feed: Résister à la généralisation (2015-01-06)
  48. Feed: Cacher le Web (2015-01-05)
  49. Feed: Illettrisme technologique (2015-01-04)
  50. Feed: Écoutés en 2014 (2015-01-03)
  51. Feed: Économie de partage vs. économie de location (2015-01-02)
  52. Feed: Publication quotidienne (2015-01-01)
  53. [localhost] local: hg addremove
  54. adding larlet.fr/david/stream/2015/01/15/index.html
  55. adding larlet.fr/david/stream/2015/01/15/index.md
  56. [localhost] local: hg ci -m "Add new note"
  57. [localhost] local: hg push
  58. pushing to ssh://hg@bitbucket.org/david/larlet.fr
  59. searching for changes
  60. remote: adding changesets
  61. remote: adding manifests
  62. remote: adding file changes
  63. remote: added 1 changesets with 5 changes to 5 files
  64. [larlet@ssh.alwaysdata.com] run: hg pull -u -R /home/larlet/www
  65. INFO:ssh.transport:Connected (version 2.0, client OpenSSH_5.5p1)
  66. INFO:ssh.transport:Authentication (publickey) successful!
  67. INFO:ssh.transport:Secsh channel 1 opened.
  68. [larlet@ssh.alwaysdata.com] out: pulling from ssh://hg@bitbucket.org/david/larlet.fr
  69. [larlet@ssh.alwaysdata.com] out: searching for changes
  70. [larlet@ssh.alwaysdata.com] out: adding changesets
  71. [larlet@ssh.alwaysdata.com] out: adding manifests
  72. [larlet@ssh.alwaysdata.com] out: adding file changes
  73. [larlet@ssh.alwaysdata.com] out: added 1 changesets with 5 changes to 5 files
  74. [larlet@ssh.alwaysdata.com] out: 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
  75. Done.
  76. Disconnecting from ssh.alwaysdata.com... done.
  77. Une doc. Deux lignes. Futile ? Certainement, mais c’est comme [un changement de police](/david/stream/2015/01/15/), ça contribue à l’amélioration d’une expérience d’écriture en la rendant plus fluide.