Now that we can serve pages, we need some basic machinery that isn't especially Shonky-related. We need to build sites where there are multiple pages connected by relative links. Pandoc's Inline type has a constructor for Link, so we need to build a filter which detects which of those links are relative and transforms those which are into links with a different ?page.
Meanwhile, a thing Fred did for Marx which is well worth pinching is that any file in a site under a directory named pub is allowed to be served. The trouble is that Mary repos live in a private filespace, so you can't just give those files a direct url. The trick is to use a wee bit of php to check whether the file is in a pub and if so, fetch and serve it. Probably, we just extend index.php so that the usual Mary url is the contact point, but with a ?pub in $_GET, instead of a ?page. We could then forward the request to Mary with a suitable new command line option which checks the path for the presence of pub and responds accordingly.
Again, relative Link and Image data would need to be mangled appropriately by mary pandoc.
Now that Mary test cases are working properly, we can say with certaintly that this was closed by 9bb5ba6d760372c5ec23a9b254bb6c1b59191f56 (and subsequent commits).
Now that we can serve pages, we need some basic machinery that isn't especially Shonky-related. We need to build sites where there are multiple pages connected by relative links. Pandoc's
Inline
type has a constructor forLink
, so we need to build a filter which detects which of those links are relative and transforms those which are into links with a different?page
.Meanwhile, a thing Fred did for Marx which is well worth pinching is that any file in a site under a directory named
pub
is allowed to be served. The trouble is that Mary repos live in a private filespace, so you can't just give those files a direct url. The trick is to use a wee bit of php to check whether the file is in apub
and if so, fetch and serve it. Probably, we just extendindex.php
so that the usual Mary url is the contact point, but with a?pub
in$_GET
, instead of a?page
. We could then forward the request toMary
with a suitable new command line option which checks the path for the presence ofpub
and responds accordingly.Again, relative
Link
andImage
data would need to be mangled appropriately bymary pandoc
.