Skip to content

Unexpected behavior of the versioning plugin #46

@rexwangcc

Description

@rexwangcc

First of all, thank you for all of the great work you have done! I arrived here following the threads all the way from vuejs/vuepress#1018

I have switched our theme from the default one to Titanium Theme for 2 reasons, the separate right-side content sidebar and the versioning support. While the right-side content sidebar works as a charm (side note: it'd would be even better and more convenient if it could be turned on from config.js for a whole directory than having to modify each individual md file's frontmatter especially when you already have thousnads of doc files.), we ran into some unexpected behaviors with the versioning plugin:

  1. The version switch doesn't work.
  2. The sidebar disappears unexpectedly when switching between versions.

In case I didn't setup the layout correctly in our own project, I did an experiment with a clone of this repo itself seeing if it could be reproduced by:

git clone git@github.com:appcelerator/docs-devkit.git
cd ./docs-devkit/packages/docs
yarn
yarn run createVersion 0.1.4
yarn run createVersion 0.1.5
...
yarn run createVersion 0.1.19
yarn dev

And both of the aforementioned can be reproduced.

I patched what's proposed in #43 to the installed plugin in node_nodules, and that seems to fix 1., but 2. is still there (the sidebar is only showing up on next version and the pre-existing 0.1.3 version but not there in any other created versions)

Screen Shot 2020-09-30 at 1 50 14 PM
Screen Shot 2020-09-30 at 1 50 20 PM
Screen Shot 2020-09-30 at 1 50 28 PM

I'm planning to look into the source code of the plugin when I have time later, but it would be really appreciated if you are available to shed some light or even release a fix. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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