Skip to content

Translated pages don't reload correctly while using doc-live-lang #323

Open
@yardasol

Description

@yardasol

During my work on translating the packaging guide, I followed the instructions in TRANSLATING.md to build a live version of the website using the following command:

nox -s docs-live-lang -- es

When I would save changes in my editor, the session running the live website would appear to catch the changes (the terminal would update), but the actual content appeared to not change! Poking around the noxfile.py (credit to @RobPasMue for this idea), we found that that docs-live-lang is just a wrapper around the docs-live command, which has the form:

nox -s docs-live -- -D language=es

When using this command to run a live webpage, I found that content changed correctly when source files were changed.

To Reproduce

  1. Set up a virtual environment as specified in the Setting Up Your Local Environment section
  2. Start a live website using the docs-live-lang command.
  3. Make some edits to the Spanish-side of one of the .po files (I was using documentation.po) and check to see if the content updates correctly.

If other people are able to reproduce this issue, it might be worth switching the instructions to have contributors use the docs-live command.

System info:

OS: Debian 12
Python 3.10.14
nox 2024.4.15
Text editor: VIM 9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working or is wrong in our content or buildscipy-24translationsTranslation and localization of content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions