Skip to content

Auto upgrade main.css file in MarkBind sites for new releases #1961

Description

@jonahtanjz

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

#581

What is the area that this feature belongs to?

Author Usability, DevOps

Is your feature request related to a problem? Please describe.

When users run markbind init, a standard main.css file is created. However, this file remains the same even after users have upgraded their MarkBind version. Any new changes introduced to the main.css file will not be reflected on their end. Users will have to manually add/edit the css file to get any bugfixes or be able to use new features on their existing MarkBind sites (Both #1692 and #1939 are good examples of having to manually edit the css file).

Describe the solution you'd like

Should we remove the main.css file entirely from the template site and shift all the existing css to markbind.css? This way, we can easily control the css for existing MarkBind sites so any bugfixes and new features can work out of the box after MarkBind is upgraded.

Describe alternatives you've considered

Have a command like markbind upgrade to pull in the new changes to the existing main.css file. However this will be tricky as users may have edited the main.css file and may overwrite their existing css.

@MarkBind/active-devs What do you all think about this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions