Cleanup user journeys related configs and scripts (#18814)

This commit is contained in:
Jie Shen
2020-01-31 09:46:19 +08:00
committed by GitHub
parent 999be25909
commit a34bbe4365
8 changed files with 0 additions and 513 deletions
-12
View File
@@ -1,12 +0,0 @@
{{ define "content" }}
{{ if not .Params.notitle }}
<h1>{{ .Title }}</h1>
{{ end }}
{{ .Content }}
{{ if .Params.track }}
{{ partial "docs/user-journey.html" . }}
{{ end }}
{{ end }}
{{ define "content-id" }}content{{ end }}
-22
View File
@@ -1,22 +0,0 @@
<div class="track">{{ .Params.track }}</div>
<div class="topheader">
Introduction
</div>
<div class="sections">sections in this doc</div>
<div id="user-journeys-toc" class="tablebar">
<!-- This TOC section is populated with Javascript, see js/user-journeys-toc.js -->
</div>
<div class="docsection1">
{{ partial "insert-capture" (dict "ctx" . "id" "overview" )}}
{{- with .Scratch.Get "__cid_body" -}}
{{ $body := replace . `<h2` `</div><h2` }}
{{ $body := replace $body `</h2>` `</h2><div class="docsection1">` | safeHTML }}
{{- $body -}}
{{- end -}}
</div>
<script src="{{ "js/user-journeys/toc.js" | relURL }}"></script>
@@ -1,23 +0,0 @@
<div class="track">{{ .Params.track }}</div>
<div class="topheader">
Introduction
</div>
<div class="sections">sections in this doc</div>
<div id="user-journeys-toc" class="tablebar">
<!-- This TOC section is populated with Javascript, see js/user-journeys-toc.js -->
</div>
<div class="docsection1">
{{ partial "templates/block" (dict "page" . "block" "overview" "purpose" "provides an introduction of this level.") }}
{{- $capture := printf "__cid_%s" "body" -}}
{{- $body := .Scratch.Get $capture -}}
{{ with $body }}
{{ $b := replace $body "<h2" "</div><h2" }}
{{ $b := replace $b "</h2>" "</h2><div class=\"docsection1\"" }}
{{ $b }}
{{ end }}
</div>
<script src="{{ "js/user-journeys/toc.js" | relURL }}"></script>