subroutineload_pages
subroutine load_pages(p, s, abbreviations_from, pages)
Read the pages of the project into pages, parents before children.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| p | type(project_t) | inout | target | the project |
| s | type(settings_t) | in | the settings | |
| abbreviations_from | type(markdown_options_t) | in | has the abbreviations of the project | |
| pages | type(page_t) | out | allocatabledimension(:) | the pages |
Calls
Source
Show the code
subroutine load_pages(p, s, abbreviations_from, pages)
type(project_t), intent(inout), target :: p !! the project
type(settings_t), intent(in) :: s !! the settings
type(markdown_options_t), intent(in) :: abbreviations_from !! has the abbreviations of the project
type(page_t), allocatable, intent(out) :: pages(:) !! the pages
allocate (pages(0))
if (.not. allocated(s%page_dir)) return
call read_tree(p, s, abbreviations_from, s%page_dir, '', 0, 0, pages)
end subroutine load_pages