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

Add relative links to the convert template file #1728

Merged
merged 5 commits into from
Jan 20, 2022

Conversation

ong6
Copy link
Contributor

@ong6 ong6 commented Jan 18, 2022

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • Feature addition or enhancement
  • Code maintenance
  • Others, please explain:

Fixes #1725

Overview of changes:
This PR directly address the issue raised in #1725.

I fix it by adding the {{baseUrl}} into the template nunjucks file.

Anything you'd like to highlight / discuss:

Testing instructions:

Run markbind init -c on a test repo and see that the {{baseUrl}} is indeed there.

image

Proposed commit message: (wrap lines at 72 characters)

Add relative links to template file


Checklist: ☑️

  • Updated the documentation for feature additions and enhancements
  • Added tests for bug fixes or features
  • Linked all related issues
  • No unrelated changes

Copy link
Contributor

@jonahtanjz jonahtanjz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ong6 for discovering the issue and fixing it 👍

Overall looks good. I believe we can also add {% raw %} {% endraw %} to {{ MarkBind }} in the footer as well since it's the same issue.

@@ -1,14 +1,14 @@
<head-bottom>
<link rel="stylesheet" href="{{baseUrl}}/stylesheets/main.css">
<link rel="stylesheet" href="{% raw%}{{baseUrl}}{% endraw %}/stylesheets/main.css">
Copy link
Contributor

@jonahtanjz jonahtanjz Jan 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivial suggestion, able to add some spaces here? Same for the rest :)

Suggested change
<link rel="stylesheet" href="{% raw%}{{baseUrl}}{% endraw %}/stylesheets/main.css">
<link rel="stylesheet" href="{% raw %}{{ baseUrl }}{% endraw %}/stylesheets/main.css">

@ong6
Copy link
Contributor Author

ong6 commented Jan 19, 2022

@jonahtanjz Thanks for the tips! Will add them!

Copy link
Contributor

@ryoarmanda ryoarmanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I'll leave the final reviewing and merge to @jonahtanjz.

Copy link
Contributor

@jonahtanjz jonahtanjz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jonahtanjz jonahtanjz merged commit a539e2a into MarkBind:master Jan 20, 2022
@jonahtanjz jonahtanjz modified the milestones: 4.0, 3.1.1 Jan 20, 2022
ang-zeyu pushed a commit that referenced this pull request Jan 31, 2022
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.

When using the Convert feature, some links are not relative to the base url
3 participants