fdoc

subroutineload_pages

subroutine load_pages(p, s, abbreviations_from, pages)

Read the pages of the project into pages, parents before children.

Arguments

NameTypeIntentAttributesDescription
ptype(project_t)inouttarget

the project

stype(settings_t)in

the settings

abbreviations_fromtype(markdown_options_t)in

has the abbreviations of the project

pagestype(page_t)outallocatabledimension(:)

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

Graphs

Calls

Called by