Skip to content

contribution.md: multipage booklet, internal cross-link, request for clarification #543

Open
@nbehrnd

Description

@nbehrnd

En route to prepare a new multipage booklet, I struggle to define and subsequently use a link across one Markdown file to a specific section in an other Markdown file. To me, the example in fortran-lang_webpage/source/community/contributing.md with

[Fortran-lang news]({{pathto('index',1)[:-5]}}News)

is not yet understood. Because I did not identify an other already existing booklet using a cross-link to an other Markdown file, it is not possible to mimic the pattern required. Can you please provide a clarification on the following minimal working example?

Let's presume there already is an index.md file with

# minibook_title

:::{toctree}
:maxdepth: 2
:hidden:
Dependent page <dependent_page>

This is the `index.md` file of `minibook_title`.

This links to [application](dependent_page.md#application)

as content. Already known to learning.yml as is the following dependent file dependent_page.md of the content

# dependent_page

test test test
test test test
test test test

## theory

placeholder placeholder
placeholder placeholder
placeholder placeholder

## application

This is section with the point
of interest I would like to cross-link.

to section application.

In local builds with Linux Debian 13/trixie, resolving the dependencies with pip install -r requirements.txt I'm able to cross-link to sections of the same Markdown file only, but not beyond. (Links to external references again work well.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions