summaryrefslogtreecommitdiff
path: root/pgweb/docs/struct.py
AgeCommit message (Collapse)Author
2019-01-17Fix whitespace and indentation, per pep8Magnus Hagander
2019-01-17Tabs, meet your new overlords: spacesMagnus Hagander
In a quest to reach pep8, use spaces to indent rather than tabs.
2018-11-05Remove references to the (static|interactive) path to documentation.Jonathan S. Katz
While the permanent redirect will fix this over the course of time, it is still better that we do not reference the old path from pgweb.
2017-05-28Generate sitemap with 10 instead of 10.0 for docs searchMagnus Hagander
2017-03-23Generate internal sitemap including devel docsMagnus Hagander
We'll use this to index some things in our own search engine without exposing it to external sitemap parsers. Not from a security standpoint of course, but something that will lead to it being possible to search the devel docs again.
2016-05-31Don't include /devel/ docs in sitemapMagnus Hagander
This conflicts with what we had in robots.txt, and generates many thousands of warnings by Google (and possibly others).
2016-05-14Prefix cross-application imports with pgwebMagnus Hagander
As required by the new project layout.
2014-01-01Clean up importsMagnus Hagander
Remove unused imports and some other completely unused code.
2013-08-22Fix beta versioning to be more generic test versioningMagnus Hagander
This allows us to specify both beta and rc versions. Requires SQL: ALTER TABLE core_version RENAME COLUMN beta TO testing; ALTER TABLE core_version ALTER COLUMN testing TYPE integer USING CASE WHEN testing THEN 2 ELSE 0 END;
2013-08-17Don't generate broken links to /docs/0.0/ in the sitemapMagnus Hagander
Generate proper /devel/ URLs, and then exclude them again in robots.txt so we don't include them in google results, but we do include them in our own.
2013-08-17Include development and beta versions in search indexesMagnus Hagander
This includes both the sitemap used by google and friends and our own site index, which uses the sitemap to decide which URLs to crawl. Fixes #171 Closes #172
2013-08-17Use a proper database field for beta releasesMagnus Hagander
This replaces the previous ugly hack where beta versions had a negative number as latestminor, giving a much cleaner model. Requires SQL: ALTER TABLE core_version ADD COLUMN beta boolean NOT NULL DEFAULT 'f'; ALTER TABLE core_version ALTER COLUMN beta DROP DEFAULT; (Yes, we really need to move to something that can do automatic migrations)
2012-05-16Exclude beta version docs from sitemap.xmlMagnus Hagander
Currently showed up as the highest priority - oops.... Spotted by Stefan
2012-02-07Assign better priorities to docs pages for searching, and include older docsMagnus Hagander
Instead of just including supported versions, include older versions of the docs as well, and properly assign priorities by: * For current docs, always assign priority 1.0 * For any other docs, start at 0.8 for the latest and decrease priority by 0.1 for each version, until we reach 0.1. This should restore the ability to search for old versions of the documentation (they still get proper priorities when searching for suburls, which currently returns no hits at all) while maintaining a strong priority for the newer versions.
2012-01-14Include last modified date in sitemapMagnus Hagander
2011-07-12Add concept of supported versionsMagnus Hagander
Also, only index docs for supported versions...
2010-09-28Add support for generating sitemap.Magnus Hagander
Each module now contains a struct.py file that will return all the URLs that it can generate (yes, this is a small break of the abstraction of url.py, but we've broken that elsewhere as well), and also which search-engine-weight (0.1-1.0) that this URL should be given.