Skip to content

Commit

Permalink
testing toc collapse again
Browse files Browse the repository at this point in the history
*also testing fig.cap for figure captions
* attempting to make page width wider by default so tables don't need to scroll as much
  • Loading branch information
EliLawrence committed Mar 13, 2023
1 parent b81596c commit 7131329
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ output:
template: null
bookdown::gitbook:
toc_depth: 4
fig_caption: TRUE
fig_caption: true
includes:
in_header: [google_analytics.html]
split_by: rmd
css: "style.css"
config:
toc:
collapse: section
collapse: none
before: |
<li><a href="/">The OBIS manual</a></li>
documentclass: book
Expand Down
2 changes: 1 addition & 1 deletion relational_db.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A fourth table could easily be created to track total school population size thr
We elaborate on how this structure is applied within OBIS [here](formatting.html#dataset-structure).

<img src="images/RelationalDB.drawio.png" alt="Diagram of relational databases showing how three tables are linked by unique indentifiers" class="img-responsive"/>
<p class="caption-50"> Figure. An example of how a relational database works. Three tables show the (1) student performance (blue table) in (2) different schools (pink table) in a fictional country, and (3) the names of the courses (yellow table). Information between each table is linked by the use of identifiers, indicated by the arrows.</p>
fig.cap='Figure. An example of how a relational database works. Three tables show the (1) student performance (blue table) in (2) different schools (pink table) in a fictional country, and (3) the names of the courses (yellow table). Information between each table is linked by the use of identifiers, indicated by the arrows.'

Note that when OBIS harvests data, datasets are flattened - i.e., all separate data tables are combined into one. This is the kind of file you will receive when you [download data from OBIS](access.html). The reason for this is that querying relational databases significantly reduces computational time, as opposed to querying a flat database. Relational databases also facilitate requests for subsets that meet particular criteria - e.g., all data from Norway for one species above a certain depth.

Expand Down
3 changes: 3 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ table {
display: inline-block !important;
overflow-x: scroll !important;
}
.book .book-body .page-wrapper .page-inner {
max-width: 90% !important;
}

0 comments on commit 7131329

Please sign in to comment.