This repository contains the source code for the web content of polydes.com.
polydes.com serves as a Stencyl extension repository. The API for extension repositories is undocumented, but v4 is designed to be easily served as static files, with no need to persist built artifacts or other state. See [NetRepoBackend.java] for the code used to access extension repositories. In order to serve all API versions at once, a .htaccess file is used to rewrite web requests as needed.
The URL used as the extension repository isn't actually accessed by Stencyl. Instead, the following URLs are part of the API:
{repository_url}/access{repository_url}/v{version_number}/...
This allows the repository url itself, if opened in a web browser, to provide a user-friendly landing page to inform users about the extension repository. In this case, polydes.com provides a browsable listing of the extensions in the repository, including documentation and downloads.
Landing pages and documentation for individual extensions is sourced from the extension's own repository. For example, the content at the page www.polydes.com/repo/extensions/com.polydes.dialog is taken from docs/repo/landing.md in the polydes/dialog repository.
How it works:
html/contains the content root.zola/contains input for the Zola SSG.- Using the
Build Siteaction in the repository manager GUI puts it all together:- The repository manifest and extension metadata is prepared and added to zola static files.
- The
docs/repofolder from each polydes extension is gathered together and added to the zola content. zola buildgathers all static content into a build folder.- Files from the
htmlfolder are written over the build folder.
- The site can then be deployed with the
deploy.shscript.