Skip to content

Re-write URLs in sitemap.xml#2994

Merged
lilyminium merged 6 commits intoMDAnalysis:developfrom
lilyminium:stable-sitemap
Oct 20, 2020
Merged

Re-write URLs in sitemap.xml#2994
lilyminium merged 6 commits intoMDAnalysis:developfrom
lilyminium:stable-sitemap

Conversation

@lilyminium
Copy link
Member

Fixes #2993

Changes made in this Pull Request:

  • Python script for updating docs versions now redirects stable/sitemap.xml and dev/sitemap.xml to correct locations

See my own stable/sitemap.xml and dev/sitemap.xml as demo.

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

@pep8speaks
Copy link

pep8speaks commented Oct 18, 2020

Hello @lilyminium! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-10-18 09:03:53 UTC

@codecov
Copy link

codecov bot commented Oct 18, 2020

Codecov Report

Merging #2994 into develop will increase coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2994      +/-   ##
===========================================
+ Coverage    93.05%   93.16%   +0.11%     
===========================================
  Files          186      186              
  Lines        24609    25032     +423     
  Branches      3187     3299     +112     
===========================================
+ Hits         22900    23322     +422     
+ Misses        1661     1659       -2     
- Partials        48       51       +3     
Impacted Files Coverage Δ
package/MDAnalysis/core/groups.py 98.90% <0.00%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26880f0...fb029cc. Read the comment docs.

Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.... just a comment

contents = f.read()
except OSError:
raise ValueError(f"{file} not found")
redirected = contents.replace(old, new)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider working with the XML instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the sense of replacing the URLs for each element separately? As that's still string manipulation I thought just replacing everything in the text file would be easier.

@lilyminium lilyminium merged commit 6b0cbd6 into MDAnalysis:develop Oct 20, 2020
@lilyminium lilyminium deleted the stable-sitemap branch October 20, 2020 03:45
@lilyminium lilyminium mentioned this pull request Oct 20, 2020
4 tasks
lilyminium added a commit that referenced this pull request Oct 20, 2020
Fixes #2993

Master version of #2994
lilyminium added a commit to lilyminium/mdanalysis that referenced this pull request Dec 8, 2020
Fixes MDAnalysis#2993

Redirect URLs in stable/sitemap.xml and dev/sitemap.xml to correct locations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong URLs in sitemap.xml

4 participants