Skip to content

Latest commit

 

History

History
108 lines (97 loc) · 8.5 KB

File metadata and controls

108 lines (97 loc) · 8.5 KB

shieldsIO shieldsIO shieldsIO

WideImg

Master en Programación de Aplicaciones con JavaScript y Node.js

JS, Node.js, Frontend, Express, Patrones, IoT, HTML5_APIs, Asincronía, Websockets, ECMA6, ECMA7

Clase 111

Python

Documentación generada automáticamente desde la documentación de Python 3.4

let docGenerated = "";
const chapters = document.querySelectorAll(".compound > ul > li");

chapters.forEach(chapter => {
    let chapterDetails = chapter.querySelector("a");
	docGenerated += `- [${chapterDetails.innerText}](${chapterDetails.href})\n`;
    
    let subchapters = chapter.querySelectorAll(".toctree-l2");
    if(subchapters){
        for (let i = subchapters.length; i--; ) {
            let subchapter = subchapters[i].querySelector("a");
                docGenerated += `\t- [${subchapter.innerText}](${subchapter.href})\n`;
        }        
    }

});

Documentación Oficial