Skip to content

{docsify-updated} cannot show as expected in GitHub pages #1157

Closed as not planned
@baicaihenxiao

Description

@baicaihenxiao

Bug Report

Steps to reproduce

I add this script to index.html so that {docsify-updated} can be shown at the bottom of every pags.

hook.beforeEach(function(content) {
  return content + '\n\n----\n\n' + '<p style="color: inherit; font-weight: normal; text-decoration: none; color: #828282;">Last updated <b>{docsify-updated}</b></p>';
});

What is current behaviour

It works well at my local computer, that is, the file updated at 04.22.2020 will show 04.22.2020, the file updated at 05.04 will show 05.04. However, when I made another commit while not modify these two files at 05.05.2020,and push the new commit to GitHub, all pages depolyed in GitHub pages show 05.05.2020 at bottom. Local docsify pages still work well and show 04.22 and 05.04.

What is the expected behaviour

{docsify-updated} shows the same behaviour at both the local and github pages environment


Maybe this problem is not created by docsify, because it works at my local computer. Is it true that github modify all the files even my new commit only contains one single file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions