Skip to content

Commit

Permalink
Only check code in 'chapters' folder
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Aug 1, 2024
1 parent 2ea2e5c commit 3cef9ae
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ nav:
- Show the 2D coordinate systems: chapters/show_2d_coordinate_systems.md
- Misc:
- Contributors: misc/contributors.md
- Definitions: chapters/definitions.md
- FAQ: chapters/faq.md
- Functions: chapters/functions.md
- Definitions: misc/definitions.md
- FAQ: misc/faq.md
- Functions: misc/functions.md

theme:
name: material
Expand Down
16 changes: 8 additions & 8 deletions scripts/helper_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ get_all_chapter_filenames <- function() {
# Remove some files that are not in chapters
# Check that they exist

md_files <- stringr::str_subset(all_md_files, "faq.md", negate = TRUE)
testthat::expect_equal(length(all_md_files)- 1, length(md_files))
# md_files <- stringr::str_subset(all_md_files, "faq.md", negate = TRUE)
# testthat::expect_equal(length(all_md_files)- 1, length(md_files))

md_files <- stringr::str_subset(md_files, "definitions.md", negate = TRUE)
testthat::expect_equal(length(all_md_files)- 2, length(md_files))
# md_files <- stringr::str_subset(md_files, "definitions.md", negate = TRUE)
# testthat::expect_equal(length(all_md_files)- 2, length(md_files))

md_files <- stringr::str_subset(md_files, "introduction.md", negate = TRUE)
testthat::expect_equal(length(all_md_files)- 3, length(md_files))
# md_files <- stringr::str_subset(md_files, "introduction.md", negate = TRUE)
# testthat::expect_equal(length(all_md_files)- 3, length(md_files))

md_files <- stringr::str_subset(md_files, "functions.md", negate = TRUE)
testthat::expect_equal(length(all_md_files)- 4, length(md_files))
# md_files <- stringr::str_subset(md_files, "functions.md", negate = TRUE)
# testthat::expect_equal(length(all_md_files)- 4, length(md_files))

md_files
}

0 comments on commit 3cef9ae

Please sign in to comment.