mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
throw analytics into man pages
This commit is contained in:
parent
eba64b0990
commit
3c7b9777e4
@ -134,11 +134,12 @@ foreach(m ${MANSOURCE3})
|
|||||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${me}
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${me}
|
||||||
)
|
)
|
||||||
set(MANPAGES3 ${MANPAGES3} ${CMAKE_CURRENT_BINARY_DIR}/${me})
|
set(MANPAGES3 ${MANPAGES3} ${CMAKE_CURRENT_BINARY_DIR}/${me})
|
||||||
|
file(GLOB ANALHTML doc/analytics-header.html)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${me}.html
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${me}.html
|
||||||
DEPENDS ${m}
|
DEPENDS ${m} ${ANALHTML}
|
||||||
COMMAND ${PANDOC}
|
COMMAND ${PANDOC}
|
||||||
ARGS --to html --standalone ${m} > ${CMAKE_CURRENT_BINARY_DIR}/${me}.html
|
ARGS -H ${ANALHTML} --to html --standalone ${m} > ${CMAKE_CURRENT_BINARY_DIR}/${me}.html
|
||||||
COMMENT "Building HTML5 ${me}.html"
|
COMMENT "Building HTML5 ${me}.html"
|
||||||
)
|
)
|
||||||
add_custom_target(${me}.html5
|
add_custom_target(${me}.html5
|
||||||
|
8
doc/analytics-header.html
Normal file
8
doc/analytics-header.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-11557335-1"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'UA-11557335-1');
|
||||||
|
</script>
|
@ -1,4 +1,4 @@
|
|||||||
.TH notcurses-input. 1 "v1.0.2"
|
.TH notcurses-input 1 "v1.0.2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
notcurses-input \- Display and decode input
|
notcurses-input \- Display and decode input
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user