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

Allows custom external links via conf.py #28

Closed
wants to merge 1 commit into from

Conversation

Zulko
Copy link
Collaborator

@Zulko Zulko commented Oct 1, 2019

Very simple change allowing users to define as many external links as they want from conf.py

In conf.py:

html_context = {
        "external_links": [
          ("Github", "https://github.com/username/repo"),
          ("Other", "https://github.com/username/repo")
        ]
    }

Result (top right corner):

image

@schettino72
Copy link
Owner

Nice.

@Zulko , sorry I am not being very responsive. No time to work in this project lately.

I just gave you commit access to the project. Feel free to merge your improvements directly into master.

@Zulko
Copy link
Collaborator Author

Zulko commented Oct 1, 2019

Thanks very much, I'll try to keep things clean. Since you gave me commit access, the next changes to come are:

  • A new CSS spreadsheet specifically for formatting sphinx-generated autodocs elements (those aren't formatted at all at the moment and that's doesn't look nice)
  • Allow users to use their own custom CSS spreadsheet.

@schettino72
Copy link
Owner

btw. this is an item of #15 .

I guess Sphinx recommends using html_theme_options to define theme related configuration instead of html_context.

@Zulko
Copy link
Collaborator Author

Zulko commented Oct 1, 2019

OK, I'll look into it.

@Zulko Zulko closed this Oct 1, 2019
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.

2 participants