Skip to content

Deduplicate information across index.md and README.md  #15

@kevinlin1

Description

@kevinlin1

I noticed that some information is duplicated across the index.md and README.md files in the Just the Docs Template, and some information is not listed on both pages. I wanted to open this issue so that we might be able to discuss an approach for combining these two files.

Potentially desirable end state
Combine the information currently spread across index.md and README.md into a single file, README.md, that is permalinked to /:path/. The context for this suggestion was something that I did last year to deduplicate information across the index.md and README.md files in my Just the Class template. I figured this might also be a useful change for the official template repository too.

The advantages of deduplicating information in these two files:

  • Make things less confusing for users who mistakenly change README.md when they intend to change index.md.
  • Display of all key content upfront in GitHub, which renders the README.md using GitHub's markdown engine.
  • Aid maintainers and users of the template repository by reducing the need to update or other synchronize changes across both files.
  • Fix an issue with the template website currently generating a publicly-visible plain page for README.md. (This can be excluded in the Jekyll site configuration.)

The drawbacks of deduplicating information in these two files:

  • YAML front matter is slightly annoying to read for people who aren't interested in it, but I figured this was an okay annoyance since it's the template repository and not the gem source repository.
  • Make things more confusing for users who want their README.md (displayed in GitHub) to appear separately and differently from their website index.md content.

What are your thoughts? My assumption is that having a unified README.md and index.md makes things clearer for less-experienced users by ensuring that a change to a file that looks like the home page's content would in fact result in a change in the output website.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions