SaraVieira/fiddly

Does not support changing additional file names

chimon2000 opened this issue · 0 comments

Summary

When using a filename with multiple hyphenated words, they are not split. Take the following example:

image

In this case, the 2nd page uses snake case and the 3rd page uses hyphens.

Solution

One solution that piggybacks from vuepress is to allow additionalFiles to accept string|string[]. If an array is used, the first value is the file and the second value is the title. Take the following as an example:

{
  "additionalFiles": [
    ["./docs/core_concepts.md", "Core Concepts"],
    ["./docs/another-page.md", "Another Page"],
    "thirdpage.md"
  ]
}

The first two pages have a different title from their file path. The last page has the same title.