```mermaid
sequenceDiagram
participant dotcom
participant iframe
participant viewscreen
dotcom->>iframe: loads html w/ iframe url
iframe->>viewscreen: request template
viewscreen->>iframe: html & javascript
iframe->>dotcom: iframe ready
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function to generate a random string. | |
gen_random() { | |
cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-20} | head -n 1 | |
} | |
# Unpack the task archive and add it as a remote in the current git repo | |
TASK_ARCHIVE=${1#file:/} | |
TEMP_FOLDER=/tmp/`gen_random` | |
unzip -q $TASK_ARCHIVE -d $TEMP_FOLDER | |
ORIG_TASK_FOLDER=$TEMP_FOLDER/`ls $TEMP_FOLDER` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASKCARD { | |
box-sizing: border-box; | |
position: relative; | |
padding-top: 17px; | |
} | |
TASK { | |
border: 1px solid black; | |
border-bottom: 0; | |
visibility: -oxy-collapse-text; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.oxy-doc-2 { | |
font-family: Times New Roman; | |
} | |
.oxy-doc-2 [data-reference='true'] > [data-role='BEFORE_1'] { | |
text-decoration: underline; | |
color: navy !important; | |
margin-top: 2px !important; | |
margin-right: 2px !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page { | |
@top-center { | |
content: attr('link.svg'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> | |
<topic id="gardenia"> | |
<title>Title</title> | |
<body> | |
<section id="section_uxd_mgb_y3b"> | |
<title>Some section</title> | |
<p/> | |
<p/> | |
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table, table > * { | |
border: none !important; | |
background-color: transparent !important; | |
} | |
title { | |
display:none; | |
} | |
table { | |
counter-reset: left right; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@xpath: "string-join(for $i in 1 to (count(preceding::h2)) return '.\A')"; | |
h2 { | |
string-set: chapter-title oxy_xpath(@xpath); | |
} | |
@page chapter { | |
@right-top { | |
font-size: 50px; | |
text-align: right; | |
padding: 0; | |
content: string(chapter-title) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page { | |
column-count: 2; | |
} | |
h1 { | |
column-span: all; | |
text-align:center; | |
} | |
p { | |
-oxy-column-break-inside:avoid; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h2 { | |
string-set: chapter-title content(); | |
} | |
@page chapter { | |
@top-center { | |
content: oxy_xpath('//h1/text()') " / " string(chapter-title) " / " counter(page); | |
} | |
} | |
article { | |
page: chapter; |
NewerOlder