[DOCU-798] Apply 'YAML brush' to YAML code snippets - bulk change Created: 23/Aug/16  Updated: 30/Sep/19  Resolved: 30/Sep/19

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Sys Help Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Done Votes: 0
Labels: outdated
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Date of First Response:

 Description   

Since Confluence can handle custom language brushes again and SYS-1120 is resolved now, we can again applying the YAML code style brush to code snippets done with one the code macros again.

When the error with the custom brush appeared, we were changing the language style from YAML to javascript via script (see SYS-1120).
However, to run the script in the opposite direction seems dangerous, because we have javascript code snippets on which we want to keep the javascript brush not applying the YAML brush.

So ... the question is how to do a bulk change without "damaging" javascript code snippets.



 Comments   
Comment by Richard Gange [ 23/Aug/16 ]

So ... the question is how to do a bulk change without "damaging" javascript code snippets.

How many JS code snippets are there? Can't be more than a handful I would imagine.

Is there a way to bulk change this? If so, I say we do that then look for the JS snippets and change them back manually. Seems like the easier road.

Comment by Christoph Meier [ 23/Aug/16 ]

rgange, generally i agree.

We have most probably hundreds of pages with YAML code but probably not more then a dozen with JS. And JS code with the YAML brush doesn't look super wrong.
I know just "my pages" with javascript, e.g.this one https://documentation.magnolia-cms.com/display/DOCS/Accessing+content+on+the+client+side

Look at SYS-1120 to see how we did the bulk change from YAML to JS.
However the script had some side-effects which we must get rid off first.
Maybe i will tackle this one together with ahietala (he offered me to do so).
But first wanted to do some other things (was already wasting too much time with Confluence this week).

Comment by Julie Legendre [ 30/Sep/19 ]

In order to better focus our efforts on DOCU tickets that are still relevant and important, all tickets older than 18 months have been labelled as outdated and are being automatically closed.
If you think your ticket is still relevant and should remain open, please add a comment and set it back to open.

Generated at Mon Feb 12 01:12:29 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.