Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve non-root site handling of nikola auto. Fix 3715. #3727

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

aknrdureegaesr
Copy link
Contributor

Pull Request Checklist

  • [✔] I’ve read the guidelines for contributing.
  • [✔] I updated AUTHORS.txt and CHANGES.txt (if the change is non-trivial) and documentation (if applicable).
  • [✔] I tested my changes.

Description

If conf["SITE_URL"] points to some non-root path, then nikola auto --browser now

  • serves the stuff from the pertinent non-root path.
  • points the browser to the pertinent non-root path.

CHANGES.txt Outdated Show resolved Hide resolved
Comment on lines +160 to +161
# For this case, the auto module has special code
# (at module load time! 😟) which we reluctantly reproduce here:
Copy link
Member

Choose a reason for hiding this comment

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

This was required to work around a bug in asyncio, IIRC it prevented shutting down the server with ^C. You may move it to some later point than loading the module.

("https://lorem.ipsum/dolet/", "/dolet"),
("http://example.org:124/blog", "/blog"),
("http://example.org:124/Deep/Rab_bit/hol.e/", "/Deep/Rab_bit/hol.e"),
# Would anybody in a sane mind actually do this?
Copy link
Member

Choose a reason for hiding this comment

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

No, I doubt it would work in any reasonable way.

Co-authored-by: Chris Warrick <[email protected]>
@Kwpolska Kwpolska linked an issue Jan 4, 2024 that may be closed by this pull request
2 tasks
@Kwpolska Kwpolska merged commit b28c2bc into getnikola:master Jan 4, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build-in auto server could support non-root sites better.
2 participants