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

Backslash required for repo_view + more docs #72

Open
SeniorMars opened this issue Jul 9, 2024 · 0 comments
Open

Backslash required for repo_view + more docs #72

SeniorMars opened this issue Jul 9, 2024 · 0 comments

Comments

@SeniorMars
Copy link
Contributor

SeniorMars commented Jul 9, 2024

repo_url = "https://github.com/not-matthias/apollo/tree/main/content"

Great job upgrading to 0.19. Just wanted to say that repo_view requires a backslash at the end '/'.

Also, toc enables some js. We could want to document that.

Moreover, on my fork I reverted to mathjax 2.7 due to mobile issues with 3.x. It's a bit slower, but it works great on all platforms and has auto linebreaks.

Here is my mathjax config:

    {% if config.extra.mathjax | default(value=false) %}
        {% if config.extra.mathjax_extra | default(value=false) %}
            <script type="text/x-mathjax-config">
            MathJax.Hub.Config({
                extensions: ["tex2jax.js", "fast-preview.js"],
                tex2jax: {
                    inlineMath: [['$', '$'], ['\\(', '\\)']],
                    displayMath: [['$$', '$$'], ['\\[', '\\]']],
                    processEscapes: true
                },
                "HTML-CSS": {
                    linebreaks: {
                        automatic: true,
                        width: "container"
                    }
                },
                SVG: {
                    linebreaks: {
                        automatic: true,
                        width: "container"
                    },
                    font: "TeX"
                },
                "fast-preview": {
                    disabled: false
                }
            });
            </script>
        {% endif %}
        <script type="text/javascript" async
            src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML">
        </script>
    {% endif %}

then in misc.scss i have:

.MathJax_Display,
.MJXc-display,
.MathJax_SVG_Display {
  overflow-x: auto;
  overflow-y: hidden;
}

#MathJax_Message {
  display: none !important;
}

I don't like it using the cdn, but mathjax is a big library.

Finally, there is also, read_time option which formats the reading_time option from zola.

                    {% if page.extra.read_time %}
                        :: <time>{{ page.reading_time }}</time> Min Read
                    {% endif %}
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