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

slide theme derived theme has documentation_options blank URL_ROOT #173

Open
jodygarnett opened this issue May 17, 2023 · 0 comments
Open

Comments

@jodygarnett
Copy link

In updating sphinx I am running into an error with a custom theme based on slides:

[Error] TypeError: null is not an object (evaluating 'document.getElementById("documentation_options").getAttribute')

A related fix appears to be sphinx-doc/sphinx#4916

Blindly performing the layout.html fix indicated above resolves the issue:

    <script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    document.getElementById("documentation_options").getAttribute('data-url_root'),
        VERSION:     '{{ release|e }}',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
        HAS_SOURCE:  {{ has_source|lower }}
      };
    </script>
@jodygarnett jodygarnett changed the title documentation_options blank URL_ROOT slide theme derived theme has documentation_options blank URL_ROOT May 17, 2023
jodygarnett added a commit to GeoCat/geocat-themes that referenced this issue May 17, 2023
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

No branches or pull requests

1 participant