Skip to content

Asciidoctor: Add "Edit Me" Links #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2019

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jan 4, 2019

This adds the missing "Edit Me" links to every section. It uses a tree
processor that modifies how some parts of Asciidoctor's AST render their
titles to render the link.

This adds the missing "Edit Me" links to every section. It uses a tree
processor that modifies how some parts of Asciidoctor's AST render their
titles to render the link.
@nik9000 nik9000 requested a review from ddillinger January 4, 2019 21:14
'-a' => 'root_dir=' . $root_dir,
$private ? ( '-a' => 'edit_url!' ) : (),
$private ? () : ( '-a' => "edit_url=$edit_url" ),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've flipped this around because just the presence of the edit_url attribute is enough for asciidoctor.

Copy link

@ddillinger ddillinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those thorough tests, awesome :)

@nik9000 nik9000 merged commit 40f8e2d into elastic:master Jan 7, 2019
@nik9000
Copy link
Member Author

nik9000 commented Jan 7, 2019

Thanks for reviewing @ddillinger!

@nik9000 nik9000 mentioned this pull request Jan 8, 2019
bmorelli25 pushed a commit to bmorelli25/docs that referenced this pull request Feb 15, 2019
This adds the missing "Edit Me" links to every section. It uses a tree
processor that modifies how some parts of Asciidoctor's AST render their
titles to render the link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants