docs icon indicating copy to clipboard operation
docs copied to clipboard

Notable Event Types Doc Update - An include directive is not expanded properly

Open knz opened this issue 4 years ago • 7 comments

Raphael ‘kena’ Poss (knz) commented:

Re: Notable Event Types

See: image

The include should be expanded into a callout instead.

cc @taroface

Jira Issue: DOC-1584

knz avatar May 18 '21 14:05 knz

@yzdocs Do you have any insight as to why this include isn't being properly rendered? Is it perhaps because we are using the remote_include functionality to embed the content in that screenshot, which contains the above include?

This experimental-warning include is placed here and generated into this doc, which is what the remote_include points to.

taroface avatar May 18 '21 14:05 taroface

cc @ianjevans on the above remote_include question.

taroface avatar May 18 '21 16:05 taroface

I looked into this, and the remote_include is being processed after the Liquid tags are all processed. I think there might be a way to trigger a Liquid converter within the plugin. https://github.com/ianjevans/jekyll-remote-include/issues/4

ianjevans avatar May 18 '21 17:05 ianjevans

Andrew Feierabend (andf-crl) commented: Looks like Ryan merged a fix (removal of include directive from upstream generated docs content) to upstream branch {{master}}.

This has fixed live version of {{v21.1}} docs, which still referenced the {{master}} branch of eventlog.md (generated | source md), but the live versions of this page for {{v21.2}} and {{v22.1}} are still broken with the problem described in this ticket’s description.

The issue here is:

  • We would need to edit the v21.2 and v21.2 versions of this generated content, which might be complicated because these versions have already shipped, and
  • We must continue to point our per-version include in docs to its matching version in CRDB repo, for this resource, as event log items are indeed version-specific.

Pausing on this while I consider / consult.

Note: ideally, live version of {{v21.1}} docs should be fixed to reference {{release-21.1}} branch of upstream generated content, instead of {{master}}. Currently, its presented log events are not correct for the version presented.

exalate-issue-sync[bot] avatar Jun 10 '22 18:06 exalate-issue-sync[bot]

Andrew Feierabend (andf-crl) commented: Much of my above comment surfaced here: https://github.com/cockroachdb/cockroach/issues/84024

exalate-issue-sync[bot] avatar Jul 13 '22 23:07 exalate-issue-sync[bot]

Andrew Feierabend (andf-crl) commented: Also just stumbled on: https://github.com/cockroachdb/cockroach/pull/84111 . Probably this means that I should close dupe this ticket, but I’ll need to check versioning of upstream includes per my above message.

exalate-issue-sync[bot] avatar Jul 18 '22 16:07 exalate-issue-sync[bot]

Andrew Feierabend (andf-crl) commented: Include no longer referenced in upstream branches:

  • {{master}}
  • {{release-22.2}}
  • {{release-22.1}}
  • {{release-21.2}}
  • {{release-21.1}}

File does not exist previous to v21.1.

Closing ticket!

exalate-issue-sync[bot] avatar Jan 06 '23 19:01 exalate-issue-sync[bot]