In this situation we need to set root_path to ./repository/content and static_assets_path to ./repository/static_assets.
Problem
If the content is fetched with remote_repository_url from a Git repository, currently, it's cloned inside root_path. This way, with the current implementation, after PardallMarkdown clones the Git repository, the local folder structure will be:
As you can see, the nesting is wrong, and FileWatcher will send everything to be parsed as Markdown, ignoring the static files. Also, the slugs will contain /content/content two times.
Solution
Add a config to see the clone path, this way, the application can be configured as:
This is both a bug but also an enhancement.
Scenario
The content is structured such that the markdown files are in subfolder inside the root:
In this situation we need to set
root_path
to./repository/content
andstatic_assets_path
to./repository/static_assets
.Problem
If the content is fetched with
remote_repository_url
from a Git repository, currently, it's cloned insideroot_path
. This way, with the current implementation, after PardallMarkdown clones the Git repository, the local folder structure will be:As you can see, the nesting is wrong, and FileWatcher will send everything to be parsed as Markdown, ignoring the static files. Also, the slugs will contain
/content/content
two times.Solution
Add a config to see the clone path, this way, the application can be configured as: