OData / odataorg.github.io

Staging site and collaboration repository for http://www.odata.org
MIT License
63 stars 101 forks source link

Add files only on prod to repo and template to generate sitemap #358

Closed gathogojr closed 10 months ago

gathogojr commented 10 months ago

Since GitHub actions ZipDeploy deployment method DOES NOT preserve any files on the target directory if they're not in the package being deployed, I identified files present in prod (most likely pushed directly) but not in the GitHub repository and added them to the repository so they'll get packaged and published during deployment.

In addition, since a sitemap.xml file is present on prod and a Jekyll template for generating that file didn't exist in the repo, I added such a template that generates both sitemap and sitemap.xml. I wouldn't say I understand whether or why both are needed but I noticed that feed and feed.xml as well as blog/feed and blog/feed.xml that do something similar also exist in pairs.

Note: You can run jekyll build locally to see the sitemap file that is generated

ElizabethOkerio commented 10 months ago

Where is the template that generates the two files? Does it need to be added here? or how does it work?

gathogojr commented 10 months ago

Where is the template that generates the two files? Does it need to be added here? or how does it work?

The two files sitemap and sitemap.xml in this pull request are actually templates that Jekyll uses to generate _site/sitemap and _site/sitemap.xml that look as follows:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.odata.org/ecosystem/consumers/(unofficial)-SSIS-import-script/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<url>
<loc>https://www.odata.org/ecosystem/consumers/ADO.NET-Driver/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<url>
<loc>https://www.odata.org/ecosystem/consumers/Access-Odata/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<url>
<loc>https://www.odata.org/ecosystem/consumers/BOARD/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<url>
<loc>https://www.odata.org/ecosystem/consumers/Browsers/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<url>
<loc>https://www.odata.org/ecosystem/consumers/CS-Connect/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<url>
<loc>https://www.odata.org/ecosystem/consumers/Client-Libraries/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<url>
<loc>https://www.odata.org/ecosystem/consumers/DataPublic/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<url>
<loc>https://www.odata.org/ecosystem/consumers/Database-NET-v3/</loc>
<lastmod>2023-09-08T10:16:03+03:00</lastmod>
</url>
<!-- MORE -->
</urlset>