mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Replace and run the sitemap generator
This replaces the very old sitemap generator which was over 2kloc and only compatible with Python 2. According to the stored lastmod, the generator wasn't used since 2010. The minimal replacement script scan the static site for html files and uses git to deduce the last modification date of each page. The sitemap xmlns version was updated to the latest 0.9 from sitemaps.org . The index page was given a higher priority since the other pages are just redirects to the index with anchors. The output file is pretty printed to help with diffs. Static assets (css, images...) aren't listed in the sitemap anymore.
This commit is contained in:
parent
73ae195068
commit
93bcf5a41e
35
NOTICE
35
NOTICE
@ -82,41 +82,6 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
doc/sitemap_gen.py
|
||||
------------------
|
||||
Under BSD License :
|
||||
|
||||
Copyright (c) 2004, 2005, Google Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
|
||||
* Neither the name of Google Inc. nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this
|
||||
software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
util/unlink.py
|
||||
--------------
|
||||
|
||||
@ -1,112 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset
|
||||
xmlns="http://www.google.com/schemas/sitemap/0.84"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
|
||||
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>http://gunicorn.org/</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2019-11-27T00:02:48+01:00</lastmod>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/community.html</loc>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/configuration.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/configure.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/css/</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/css/index.css</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/css/style.css</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/deploy.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/deployment.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/design.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/faq.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/images/</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/images/gunicorn.png</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/images/large_gunicorn.png</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/images/logo.png</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/index.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/install.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/installation.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/news.html</loc>
|
||||
<lastmod>2010-07-08T19:57:19Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/run.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/tuning.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://gunicorn.org/usage.html</loc>
|
||||
<lastmod>2010-07-01T05:14:22Z</lastmod>
|
||||
<priority>0.5000</priority>
|
||||
<lastmod>2012-10-04T00:43:15+05:45</lastmod>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
|
||||
@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site
|
||||
base_url="http://gunicorn.org"
|
||||
store_into="htdocs/sitemap.xml"
|
||||
verbose="1"
|
||||
>
|
||||
|
||||
<directory path="htdocs/" url="http://gunicorn.org/" />
|
||||
|
||||
<!-- Exclude URLs that end with a '~' (IE: emacs backup files) -->
|
||||
<filter action="drop" type="wildcard" pattern="*~" />
|
||||
|
||||
<!-- Exclude URLs within UNIX-style hidden files or directories -->
|
||||
<filter action="drop" type="regexp" pattern="/\.[^/]*" />
|
||||
|
||||
<!-- Exclude github CNAME file -->
|
||||
<filter action="drop" type="wildcard" pattern="*CNAME" />
|
||||
|
||||
</site>
|
||||
2221
docs/sitemap_gen.py
Executable file → Normal file
2221
docs/sitemap_gen.py
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user