Opensource.guide: Eliminate page.toc in _articles?

Created on 11 Aug 2018  ·  8Comments  ·  Source: github/opensource.guide

These need to match section titles in the text (i.e., are duplicative) and ought to be able to be generated in _layouts/article.html by splitting page.content into lines, looping through and skipping everything not a 2nd level header, and encoding each title found, but I haven't tried.

Motivation: I imagine creating the below (example from es/legal.md) is quite a pain for translators, and might explain why lots of headings are left untranslated in some translations:

toc:
  por-qué-la-gente-se-preocupa-tanto-acerca-de-los-aspectos-legales-del-código-abierto: "¿Por qué la gente se preocupa tanto acerca de los aspectos legales del código abierto?"
  son-públicos-los-proyectos-de-código-abierto-de-github: "¿Son públicos los proyectos de código abierto de GitHub?"
  solo-dame-un-resumen-acerca-de-lo-que-necesito-para-proteger-mi-proyecto: "Solo dame un resumen acerca de lo que necesito para proteger mi proyecto"
  cuál-licencia-de-código-abierto-es-apropiada-para-mi-proyecto: "¿Cuál licencia de código abierto es apropiada para mi proyecto?"
  y-si-quieres-cambiar-la-licencia-de-tu-proyecto: "Y si quieres cambiar la licencia de tu proyecto"
  necesita-mi-proyecto-un-acuerdo-adicional-de-colaboradores: "¿Necesita mi proyecto un acuerdo adicional de colaboradores?"
  qué-necesita-saber-el-equipo-legal-de-mi-empresa: "¿Qué necesita saber el equipo legal de mi empresa?"

Pulled from https://github.com/github/opensource.guide/pull/685#issuecomment-412147374

Adding help-wanted label because in case anyone wishes to try implementing as described in first paragraph (or a different approach), please do! Helpful documentation.

help wanted

Most helpful comment

I'd be in favour of removing these, at least from translations.

All 8 comments

I'd be in favour of removing these, at least from translations.

i have no idea what to do with the what ever this stuff is. i believe that some how i am following a trace of the programming. as if some bodies were following me or something. its like i am reverse learning about this stuff from what other people are doing around me.

it's very interesting to see

toc:
por-qué-la-gente-se-preocupa-tanto-acerca-de-los-aspectos-legales-del-código-abierto: "¿Por qué la gente se preocupa tanto acerca de los aspectos legales del código abierto?"
son-públicos-los-proyectos-de-código-abierto-de-github: "¿Son públicos los proyectos de código abierto de GitHub?"
solo-dame-un-resumen-acerca-de-lo-que-necesito-para-proteger-mi-proyecto: "Solo dame un resumen acerca de lo que necesito para proteger mi proyecto"
cuál-licencia-de-código-abierto-es-apropiada-para-mi-proyecto: "¿Cuál licencia de código abierto es apropiada para mi proyecto?"
y-si-quieres-cambiar-la-licencia-de-tu-proyecto: "Y si quieres cambiar la licencia de tu proyecto"
necesita-mi-proyecto-un-acuerdo-adicional-de-colaboradores: "¿Necesita mi proyecto un acuerdo adicional de colaboradores?"
qué-necesita-saber-el-equipo-legal-de-mi-empresa: "¿Qué necesita saber el equipo legal de mi empresa?"
Pulled from #685 (comment)

Adding help-wanted label because in case anyone wishes to try implementing as described in first paragraph (or a different approach), please do! Helpful documentation.

👍 1

關於通緝的問題,其實在我個人的一例案件中,沒有人起訴,檢察官依法提上訴高院,結果不起訴處分,而地檢署檢察官又再次以同一案件筆錄為源,顛倒是非的起訴筆錄以個人憑空想像捏造不實指控,再次以同一筆錄換一個偵查案號將不起訴案處份案件再提訴,以至於我今天面臨通戢的命運,不過明天我會去報到,包括我上一次案件,也是因為證人說謊汙衊指證,後來我告他做偽證他也承認了,但檢察官以他是為了迴護我而說謊而成立的偽證罪被判四月徒刑,而我還是執刑三年八個月的冤刑,關了兩年八個多月才假釋出獄

In the meantime: This trick worked for me in #577:

  1. Use Atom & install change-case
  2. Translate the headings in the text & copy from there
  3. Paste into ToC twice, replacing both the string and the slug
  4. Select slug, Ctrl+Shift+P, type param & hit Enter/Return

cc #702, #709, #715, #670, #627

https://freenode.logbot.info/whatwg/20180731 what is the ulterior? someone help me please, there is a group of computer experts conspiring to deceive victims by turning over facts and changing the system on their servers.

Ok

Was this page helpful?
0 / 5 - 0 ratings