File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 70
70
<2> Wrap each streaming file in a buffer so the files can be processed by uglify.
71
71
Uglify can only work with buffers, not streams.
72
72
73
+ Execute these commands to validate and build your site:
74
+
75
+ $ podman run -v $PWD:/antora:Z --rm -t antora/antora \
76
+ version
77
+ 3.0.0
78
+ $ podman run -v $PWD:/antora:Z --rm -it antora/antora \
79
+ --clean \
80
+ antora-playbook.yml
81
+
73
82
Cum dicat #putant# ne.
74
83
Est in <<inline,reque>> homero principes, meis deleniti mediocrem ad has.
75
84
Altera atomorum his ex, has cu elitr melius propriae.
Original file line number Diff line number Diff line change 49
49
copy . addEventListener ( 'click' , writeToClipboard . bind ( copy , code ) )
50
50
} )
51
51
52
+ function extractCommands ( text ) {
53
+ var cmdRx = / ^ \$ ( \S [ ^ \\ \n ] * ( \\ \n (? ! \$ ) [ ^ \\ \n ] * ) * ) (? = \n | $ ) / gm
54
+ var cleanupRx = / ( ) ? * \\ \n * / g
55
+ var cmds = [ ]
56
+ var m
57
+ while ( ( m = cmdRx . exec ( text ) ) ) cmds . push ( m [ 1 ] . replace ( cleanupRx , '$1' ) )
58
+ return cmds . join ( ' && ' )
59
+ }
60
+
52
61
function writeToClipboard ( code ) {
53
62
var text = code . innerText
54
- if ( code . dataset . lang === 'console' && text . startsWith ( '$ ' ) ) text = text . split ( '\n' ) [ 0 ] . slice ( 2 )
63
+ if ( code . dataset . lang === 'console' && text . startsWith ( '$ ' ) ) text = extractCommands ( text )
55
64
window . navigator . clipboard . writeText ( text ) . then (
56
65
function ( ) {
57
66
this . classList . add ( 'clicked' )
You can’t perform that action at this time.
0 commit comments