'Build documentation for older version before .readthedocs.yaml was added to repo

I am importing a project to read the docs; I have a series of git tags representing older versions of the library; which I would like to have docs generated for those versions as well. The problem is that there is no .readthedocs.yaml file in the repo when that tag was placed.

Normally in this case I would put some of the relevant settings in web interface, which clearly states those settings would be ignored with the presence of a .readthedocs.yaml file; but my config file does have a pre_build task

version: 2

build:
  os: "ubuntu-22.04"
  tools:
    python: "3.10"
  jobs:
    pre_build:
      - doxygen ./doc/doxygen/doxygen.conf

sphinx:
  builder: html
  configuration: doc/conf.py

python:
  install:
    - requirements: doc/requirements.txt

Is there a way I can build documentation for past git tags using the "current" config file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source