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

Markbind init --convert improvements #1866

Open
1 task done
kaixin-hc opened this issue Mar 31, 2022 · 5 comments
Open
1 task done

Markbind init --convert improvements #1866

kaixin-hc opened this issue Mar 31, 2022 · 5 comments

Comments

@kaixin-hc
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Any related issues?

Other suggestions for MarkBind init command #1782, #1844

Tell us about your environment

MacOS Monterey

MarkBind version

3.1.1

What did you do? Describe the bug

Created a repository with .md files (https://github.com/kaixin-hc/animal-behaviour-LSM1303) and ran markbind init --convert

Steps to reproduce

Clone my repository, navigating to the branch without MarkBind (https://github.com/kaixin-hc/animal-behaviour-LSM1303/tree/toTestInitOn), and run markbind init --convert. Or make your own repository with file names that have spaces.

Expected behavior

Site is created and all elements are natural and intuitive.

Actual behavior

  • Default files(the contents folder) are still created and included in the sitenav by default; since it is a conversion of an existing repo, you would expect these files not to be created and included
  • The sitenav does not work as expected (Files with spaces are not rendered correctly)
  • Instead of the default navigation sidebar name being "Template", it makes more sense for it to be something like "Contents"
  • Titles are not auto-generated for content pages.

Nits

  • Personally, I feel like the default brand image makes it look like there was an error in rendering the favicon, rather than a default placeholder being selected by default.
  • The auto-generated default.md file has a few blank lines after the navbar; I think most linters will flag this as an issue and we can do without them.

Anything else?

No response

@jonahtanjz jonahtanjz added a-AuthorUsability s.UnderDiscussion The team will evaluate this issue to decide whether it is worth adding labels Apr 3, 2022
@ong6
Copy link
Contributor

ong6 commented Apr 3, 2022

I agree with the points that you have raised. I believe that the convert feature is quite important since most new users would be using this to help generate a site from markdown files.

  • Default files(the contents folder) are still created and included in the sitenav by default; since it is a conversion of an existing repo, you would expect these files not to be created and included

I think there's an option to convert with a template? Does this still happen if you use the Minimal template?

@tlylt
Copy link
Contributor

tlylt commented Apr 3, 2022

I agree with the points that you have raised. I believe that the convert feature is quite important since most new users would be using this to help generate a site from markdown files.

  • Default files(the contents folder) are still created and included in the sitenav by default; since it is a conversion of an existing repo, you would expect these files not to be created and included

I think there's an option to convert with a template? Does this still happen if you use the Minimal template?

Conversion with a template doesn't seem to be documented yet. I believe we worked on it in #1718

@kaixin-hc any reason the above draft PR was closed? 🤔

@kaixin-hc
Copy link
Contributor Author

Conversion with a template doesn't seem to be documented yet. I believe we worked on it in #1718

@kaixin-hc any reason the above draft PR was closed? 🤔

I believe I fixed the issue in #1829 😅 I closed the PR because I accidentally added extra changes not related to #1718 in the branch, but thought it would be more useful to use the branch to PR #1829 instead.

Does this still happen if you use the Minimal template?
The additional files are not created, but the CSS template is not created either.

@tlylt
Copy link
Contributor

tlylt commented Apr 4, 2022

Conversion with a template doesn't seem to be documented yet. I believe we worked on it in #1718

@kaixin-hc any reason the above draft PR was closed? 🤔

I believe I fixed the issue in #1829 😅 I closed the PR because I accidentally added extra changes not related to #1718 in the branch, but thought it would be more useful to use the branch to PR #1829 instead.

I see, sorry I was referring to the official UG and didn't realize that this has been updated in the latest branch 😅

@ang-zeyu ang-zeyu added p.Medium c.Goal d.easy and removed s.UnderDiscussion The team will evaluate this issue to decide whether it is worth adding labels Apr 18, 2022
@lhw-1
Copy link
Contributor

lhw-1 commented Apr 12, 2023

To summarize, the changes that should be addressed / fixes that should be implemented are:

For the 3rd point, we can consider implementing auto-generation of titles for .md files specifically only when --convert is used, since for conversion from pre-existing documentation, it would be better on the user-end not to have to specify the title for every .md file (which can be quite a lot). We can even look into an extension where we allow users to specify the title generation behavior through a CLI flag on conversion (--verbose-title vs. --nonverbose-title or something along those lines?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants