Skip to content

Commit

Permalink
cmabios intro
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpelu committed Jan 7, 2025
1 parent 6e8017b commit a50016e
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 92 deletions.
2 changes: 1 addition & 1 deletion _freeze/site_libs/quarto-listing/list.min.js

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions _freeze/site_libs/quarto-listing/quarto-listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const kProgressiveAttr = "data-src";
let categoriesLoaded = false;

window.quartoListingCategory = (category) => {
category = atob(category);
if (categoriesLoaded) {
activateCategory(category);
setCategoryHash(category);
Expand All @@ -15,7 +16,9 @@ window["quarto-listing-loaded"] = () => {
if (hash) {
// If there is a category, switch to that
if (hash.category) {
activateCategory(hash.category);
// category hash are URI encoded so we need to decode it before processing
// so that we can match it with the category element processed in JS
activateCategory(decodeURIComponent(hash.category));
}
// Paginate a specific listing
const listingIds = Object.keys(window["quarto-listings"]);
Expand Down Expand Up @@ -58,7 +61,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
);

for (const categoryEl of categoryEls) {
const category = categoryEl.getAttribute("data-category");
// category needs to support non ASCII characters
const category = decodeURIComponent(
atob(categoryEl.getAttribute("data-category"))
);
categoryEl.onclick = () => {
activateCategory(category);
setCategoryHash(category);
Expand Down Expand Up @@ -208,7 +214,9 @@ function activateCategory(category) {

// Activate this category
const categoryEl = window.document.querySelector(
`.quarto-listing-category .category[data-category='${category}'`
`.quarto-listing-category .category[data-category='${btoa(
encodeURIComponent(category)
)}']`
);
if (categoryEl) {
categoryEl.classList.add("active");
Expand All @@ -231,7 +239,9 @@ function filterListingCategory(category) {
list.filter(function (item) {
const itemValues = item.values();
if (itemValues.categories !== null) {
const categories = itemValues.categories.split(",");
const categories = decodeURIComponent(
atob(itemValues.categories)
).split(",");
return categories.includes(category);
} else {
return false;
Expand Down
23 changes: 10 additions & 13 deletions docs/modulos.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.57">
<meta name="generator" content="quarto-1.6.39">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -36,10 +36,10 @@
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="site_libs/quarto-html/anchor.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="site_libs/quarto-html/quarto-syntax-highlighting-e26003cea8cd680ca0c55a263523d882.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-2ff3abc535de8b4b0059b81a8dc64fda.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -255,55 +255,55 @@ <h1 class="title">Módulos</h1>
</tr>
</thead>
<tbody class="list">
<tr data-index="0" data-listing-file-modified-sort="1735573974788" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Introducción" data-listing-filename-sort="introduccion.qmd">
<tr data-index="0" data-listing-file-modified-sort="1736248461789" data-listing-reading-time-sort="1" data-listing-word-count-sort="2" data-listing-title-sort="Introducción" data-listing-filename-sort="introduccion.qmd">
<td>
<a href="./modulos/introduccion.html" class="title listing-title">Introducción</a>
</td>
<td>
<span class="listing-author"><a href="equipo/suarez_munoz">María Suárez-Muñoz</a>, <a href="equipo/martinez_lopez">Javier Martínez-López</a>, <a href="equipo/perez_luque">Antonio J. Pérez-Luque</a></span>
</td>
</tr>
<tr data-index="1" data-listing-file-modified-sort="1735573974789" data-listing-reading-time-sort="1" data-listing-word-count-sort="78" data-listing-title-sort="Reproducibilidad" data-listing-filename-sort="reproducibilidad.qmd">
<tr data-index="1" data-listing-file-modified-sort="1735390596581" data-listing-reading-time-sort="1" data-listing-word-count-sort="78" data-listing-title-sort="Reproducibilidad" data-listing-filename-sort="reproducibilidad.qmd">
<td>
<a href="./modulos/reproducibilidad.html" class="title listing-title">Reproducibilidad</a>
</td>
<td>
<span class="listing-author"><a href="equipo/perez_luque">Antonio J. Pérez-Luque</a></span>
</td>
</tr>
<tr data-index="2" data-listing-file-modified-sort="1735573974789" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Introducción a la Programación" data-listing-filename-sort="programacion.qmd">
<tr data-index="2" data-listing-file-modified-sort="1735390440720" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Introducción a la Programación" data-listing-filename-sort="programacion.qmd">
<td>
<a href="./modulos/programacion.html" class="title listing-title">Introducción a la Programación</a>
</td>
<td>
<span class="listing-author"><a href="equipo/martinez_lopez">Javier Martínez-López</a>, <a href="equipo/perez_luque">Antonio J. Pérez-Luque</a></span>
</td>
</tr>
<tr data-index="3" data-listing-file-modified-sort="1735573974789" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Sistemas de Información Geográfica" data-listing-filename-sort="sig.qmd">
<tr data-index="3" data-listing-file-modified-sort="1735390384520" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Sistemas de Información Geográfica" data-listing-filename-sort="sig.qmd">
<td>
<a href="./modulos/sig.html" class="title listing-title">Sistemas de Información Geográfica</a>
</td>
<td>
<span class="listing-author"><a href="equipo/suarez_munoz">María Suárez-Muñoz</a>, <a href="equipo/martinez_lopez">Javier Martínez-López</a>, <a href="equipo/perez_luque">Antonio J. Pérez-Luque</a></span>
</td>
</tr>
<tr data-index="4" data-listing-file-modified-sort="1735573974788" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Bases de Datos" data-listing-filename-sort="bbdd.qmd">
<tr data-index="4" data-listing-file-modified-sort="1735390404578" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Bases de Datos" data-listing-filename-sort="bbdd.qmd">
<td>
<a href="./modulos/bbdd.html" class="title listing-title">Bases de Datos</a>
</td>
<td>
<span class="listing-author"><a href="equipo/suarez_munoz">María Suárez-Muñoz</a></span>
</td>
</tr>
<tr data-index="5" data-listing-file-modified-sort="1735573974789" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Teledetección" data-listing-filename-sort="teledeteccion.qmd">
<tr data-index="5" data-listing-file-modified-sort="1735390528648" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Teledetección" data-listing-filename-sort="teledeteccion.qmd">
<td>
<a href="./modulos/teledeteccion.html" class="title listing-title">Teledetección</a>
</td>
<td>
<span class="listing-author"><a href="equipo/martinez_lopez">Javier Martínez-López</a>, <a href="equipo/perez_luque">Antonio J. Pérez-Luque</a></span>
</td>
</tr>
<tr data-index="6" data-listing-file-modified-sort="1735573974788" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Datos Primarios de Biodiversidad" data-listing-filename-sort="datos_primarios.qmd">
<tr data-index="6" data-listing-file-modified-sort="1735545575924" data-listing-reading-time-sort="1" data-listing-word-count-sort="10" data-listing-title-sort="Datos Primarios de Biodiversidad" data-listing-filename-sort="datos_primarios.qmd">
<td>
<a href="./modulos/datos_primarios.html" class="title listing-title">Datos Primarios de Biodiversidad</a>
</td>
Expand Down Expand Up @@ -399,8 +399,6 @@ <h1 class="title">Módulos</h1>
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
Expand Down Expand Up @@ -511,7 +509,6 @@ <h1 class="title">Módulos</h1>
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
Expand Down
66 changes: 6 additions & 60 deletions docs/modulos/introduccion.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.57">
<meta name="generator" content="quarto-1.6.39">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand All @@ -21,27 +21,7 @@
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for citations */
div.csl-bib-body { }
div.csl-entry {
clear: both;
margin-bottom: 0em;
}
.hanging-indent div.csl-entry {
margin-left:2em;
text-indent:-2em;
}
div.csl-left-margin {
min-width:2em;
float:left;
}
div.csl-right-inline {
margin-left:2em;
padding-left:1em;
}
div.csl-indent {
margin-left: 2em;
}</style>
</style>


<script src="../site_libs/quarto-nav/quarto-nav.js"></script>
Expand All @@ -57,10 +37,10 @@
<script src="../site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="../site_libs/quarto-html/anchor.min.js"></script>
<link href="../site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="../site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="../site_libs/quarto-html/quarto-syntax-highlighting-e26003cea8cd680ca0c55a263523d882.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="../site_libs/bootstrap/bootstrap.min.js"></script>
<link href="../site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="../site_libs/bootstrap/bootstrap-2ff3abc535de8b4b0059b81a8dc64fda.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -225,11 +205,6 @@ <h2 id="toc-title">On this page</h2>

<ul>
<li><a href="#sesiones" id="toc-sesiones" class="nav-link active" data-scroll-target="#sesiones">Sesiones</a></li>
<li><a href="#ejercicios-prácticos" id="toc-ejercicios-prácticos" class="nav-link" data-scroll-target="#ejercicios-prácticos">Ejercicios prácticos</a>
<ul class="collapse">
<li><a href="#recursos" id="toc-recursos" class="nav-link" data-scroll-target="#recursos">Recursos</a></li>
</ul></li>
<li><a href="#bibliografía-complementaria" id="toc-bibliografía-complementaria" class="nav-link" data-scroll-target="#bibliografía-complementaria">Bibliografía complementaria</a></li>
</ul>
</nav>
</div>
Expand Down Expand Up @@ -279,7 +254,7 @@ <h1>Sesiones</h1>
</tr>
</thead>
<tbody class="list">
<tr data-index="0" data-listing-date-sort="1736204400000" data-listing-file-modified-sort="1734909328863" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="504" data-listing-title-sort="Introducción al proyecto de la asignatura" data-listing-filename-sort="intro_proyecto.qmd">
<tr data-index="0" data-listing-date-sort="1736204400000" data-listing-file-modified-sort="1736247694988" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="505" data-listing-title-sort="Introducción al proyecto de la asignatura" data-listing-filename-sort="intro_proyecto.qmd">
<td>
<span class="listing-sesion">1</span>
</td>
Expand All @@ -296,38 +271,12 @@ <h1>Sesiones</h1>
No matching items
</div>
</div>
</section>
<section id="ejercicios-prácticos" class="level1">
<h1>Ejercicios prácticos</h1>
<section id="recursos" class="level2">
<h2 class="anchored" data-anchor-id="recursos">Recursos</h2>
</section>
</section>
<section id="bibliografía-complementaria" class="level1">





</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" role="doc-bibliography" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">Bibliografía complementaria</h2><div id="refs" class="references csl-bib-body hanging-indent" data-entry-spacing="0" data-line-spacing="2" role="list">
<div id="ref-AlstonRick2021BeginnersGuide" class="csl-entry" role="listitem">
Alston, J. M., and J. A. Rick. 2021. <a href="https://doi.org/10.1002/bes2.1801">A <span>Beginner</span>’s <span>Guide</span> to <span>Conducting Reproducible Research</span></a>. The Bulletin of the Ecological Society of America 102:e01801.
</div>
<div id="ref-AstigarragaCruzAlonso2022SePuede" class="csl-entry" role="listitem">
Astigarraga, J., and V. Cruz-Alonso. 2022. <a href="https://doi.org/10.7818/ECOS.2332">Se puede entender cómo funcionan git y GitHub!</a> Ecosistemas 31:2332.
</div>
<div id="ref-10141/622618" class="csl-entry" role="listitem">
Cooper, N., and P.-Y. Hsing, editors. 2017. <a href="http://hdl.handle.net/10141/622618">A guide to reproducible code in ecology and evolution</a>. British Ecological Society.
</div>
<div id="ref-GaleanoPrieto2018PorQue" class="csl-entry" role="listitem">
Galeano Prieto, J. 2018.<a href="https://doi.org/10.7818/ECOS.1604"> qué usar <span>GitHub</span>? <span>Diez</span> pasos para disfrutar de <span>GitHub</span> y no morir en el intento</a>. Ecosistemas 27:140–141.
</div>
<div id="ref-RodriguezSanchezetal2016CienciaReproducible" class="csl-entry" role="listitem">
Rodríguez-Sanchez, F., A. J. Pérez-Luque, I. Bartomeus, and S. Varela. 2016. <a href="https://doi.org/10.7818/ECOS.2016.25-2.11">Ciencia reproducible: Qué, por qué, cómo?</a> Ecosistemas 25:83–92.
</div>
</div></section></div></main> <!-- /main -->
</main> <!-- /main -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
Expand Down Expand Up @@ -410,8 +359,6 @@ <h2 class="anchored" data-anchor-id="recursos">Recursos</h2>
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
Expand Down Expand Up @@ -522,7 +469,6 @@ <h2 class="anchored" data-anchor-id="recursos">Recursos</h2>
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
Expand Down
4 changes: 2 additions & 2 deletions docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
"href": "modulos.html",
"title": "Módulos",
"section": "",
"text": "Order By\n Default\n \n Nombre\n \n \n Profesores\n \n \n \n\n\n\n\n\nNombre\n\n\nProfesores\n\n\n\n\n\n\nIntroducción\n\n\nMaría Suárez-Muñoz\n\n\n\n\nReproducibilidad\n\n\nAntonio J. Pérez-Luque\n\n\n\n\nIntroducción a la Programación\n\n\nJavier Martínez-López, Antonio J. Pérez-Luque\n\n\n\n\nSistemas de Información Geográfica\n\n\nAntonio J. Pérez-Luque, María Suárez-Muñoz\n\n\n\n\nBases de Datos\n\n\nMaría Suárez-Muñoz\n\n\n\n\nTeledetección\n\n\nJavier Martínez-López, Antonio J. Pérez-Luque\n\n\n\n\nDatos Primarios de Biodiversidad\n\n\nAntonio J. Pérez-Luque\n\n\n\n\n\nNo matching items",
"text": "Order By\n Default\n \n Nombre\n \n \n Profesores\n \n \n \n\n\n\n\n\nNombre\n\n\nProfesores\n\n\n\n\n\n\nIntroducción\n\n\nMaría Suárez-Muñoz, Javier Martínez-López, Antonio J. Pérez-Luque\n\n\n\n\nReproducibilidad\n\n\nAntonio J. Pérez-Luque\n\n\n\n\nIntroducción a la Programación\n\n\nJavier Martínez-López, Antonio J. Pérez-Luque\n\n\n\n\nSistemas de Información Geográfica\n\n\nMaría Suárez-Muñoz, Javier Martínez-López, Antonio J. Pérez-Luque\n\n\n\n\nBases de Datos\n\n\nMaría Suárez-Muñoz\n\n\n\n\nTeledetección\n\n\nJavier Martínez-López, Antonio J. Pérez-Luque\n\n\n\n\nDatos Primarios de Biodiversidad\n\n\nAntonio J. Pérez-Luque\n\n\n\n\n\nNo matching items",
"crumbs": [
"Módulos"
]
Expand Down Expand Up @@ -544,7 +544,7 @@
"href": "modulos/introduccion.html",
"title": "Introducción",
"section": "",
"text": "Sesión\n\n\nNombre\n\n\nFecha\n\n\n\n\n\n\n1\n\n\nIntroducción al proyecto de la asignatura\n\n\nTue, Jan 07\n\n\n\n\n\nNo matching items"
"text": "Sesiones\n\n\n\n\n\nSesión\n\n\nNombre\n\n\nFecha\n\n\n\n\n\n\n1\n\n\nIntroducción al proyecto de la asignatura\n\n\nTue, Jan 07\n\n\n\n\n\nNo matching items"
},
{
"objectID": "modulos/introduccion.html#recursos",
Expand Down
2 changes: 1 addition & 1 deletion docs/site_libs/quarto-listing/list.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit a50016e

Please sign in to comment.