Skip to content

Commit 6ae2f3e

Browse files
feat(AM62LX): Add support for Buildsheets in github documentation
Signed-off-by: Telukula Jeevan Kumar Sahu <[email protected]>
1 parent 4d68803 commit 6ae2f3e

File tree

9 files changed

+2318
-0
lines changed

9 files changed

+2318
-0
lines changed

conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@
274274
# Family Configuration file to use
275275
family_config_inputfile = f"{FAMILY}/{FAMILY}_{OS}_config.txt"
276276

277+
# Add the buildsheets path here, relative to this directory. These files
278+
# are copied directly to the root of the documentation.
279+
html_extra_path = [os.path.join(rootdir, 'source', 'devices', FAMILY, '_static')]
280+
277281
# Set document exclusion list from the tocfiles
278282
exclude_patterns = sectinc.generate_exclude_patterns(family_tocfiles)
279283

Lines changed: 324 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,324 @@
1+
<html xmlns:v="urn:schemas-microsoft-com:vml"
2+
xmlns:o="urn:schemas-microsoft-com:office:office"
3+
xmlns:x="urn:schemas-microsoft-com:office:excel"
4+
xmlns="http://www.w3.org/TR/REC-html40">
5+
6+
<head>
7+
<meta name="Excel Workbook Frameset">
8+
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
9+
<meta name=ProgId content=Excel.Sheet>
10+
<meta name=Generator content="Microsoft Excel 15">
11+
<link rel=File-List href="AM62LX_build_sheet_11.00.15_files/filelist.xml">
12+
<![if !supportTabStrip]>
13+
<link id="shLink" href="AM62LX_build_sheet_11.00.15_files/sheet001.htm">
14+
15+
<link id="shLink">
16+
17+
<script language="JavaScript">
18+
<!--
19+
var c_lTabs=1;
20+
21+
var c_rgszSh=new Array(c_lTabs);
22+
c_rgszSh[0] = "Sheet1";
23+
24+
25+
26+
var c_rgszClr=new Array(8);
27+
c_rgszClr[0]="window";
28+
c_rgszClr[1]="buttonface";
29+
c_rgszClr[2]="windowframe";
30+
c_rgszClr[3]="windowtext";
31+
c_rgszClr[4]="threedlightshadow";
32+
c_rgszClr[5]="threedhighlight";
33+
c_rgszClr[6]="threeddarkshadow";
34+
c_rgszClr[7]="threedshadow";
35+
36+
var g_iShCur;
37+
var g_rglTabX=new Array(c_lTabs);
38+
39+
function fnGetIEVer()
40+
{
41+
var ua=window.navigator.userAgent
42+
var msie=ua.indexOf("MSIE")
43+
if (msie>0 && window.navigator.platform=="Win32")
44+
return parseInt(ua.substring(msie+5,ua.indexOf(".", msie)));
45+
else
46+
return 0;
47+
}
48+
49+
function fnBuildFrameset()
50+
{
51+
var szHTML="<frameset rows=\"*,18\" border=0 width=0 frameborder=no framespacing=0>"+
52+
"<frame src=\""+document.all.item("shLink")[0].href+"\" name=\"frSheet\" noresize>"+
53+
"<frameset cols=\"54,*\" border=0 width=0 frameborder=no framespacing=0>"+
54+
"<frame src=\"\" name=\"frScroll\" marginwidth=0 marginheight=0 scrolling=no>"+
55+
"<frame src=\"\" name=\"frTabs\" marginwidth=0 marginheight=0 scrolling=no>"+
56+
"</frameset></frameset><plaintext>";
57+
58+
with (document) {
59+
open("text/html","replace");
60+
write(szHTML);
61+
close();
62+
}
63+
64+
fnBuildTabStrip();
65+
}
66+
67+
function fnBuildTabStrip()
68+
{
69+
var szHTML=
70+
"<html><head><style>.clScroll {font:8pt Courier New;color:"+c_rgszClr[6]+";cursor:default;line-height:10pt;}"+
71+
".clScroll2 {font:10pt Arial;color:"+c_rgszClr[6]+";cursor:default;line-height:11pt;}</style></head>"+
72+
"<body onclick=\"event.returnValue=false;\" ondragstart=\"event.returnValue=false;\" onselectstart=\"event.returnValue=false;\" bgcolor="+c_rgszClr[4]+" topmargin=0 leftmargin=0><table cellpadding=0 cellspacing=0 width=100%>"+
73+
"<tr><td colspan=6 height=1 bgcolor="+c_rgszClr[2]+"></td></tr>"+
74+
"<tr><td style=\"font:1pt\">&nbsp;<td>"+
75+
"<td valign=top id=tdScroll class=\"clScroll\" onclick=\"parent.fnFastScrollTabs(0);\" onmouseover=\"parent.fnMouseOverScroll(0);\" onmouseout=\"parent.fnMouseOutScroll(0);\"><a>&#171;</a></td>"+
76+
"<td valign=top id=tdScroll class=\"clScroll2\" onclick=\"parent.fnScrollTabs(0);\" ondblclick=\"parent.fnScrollTabs(0);\" onmouseover=\"parent.fnMouseOverScroll(1);\" onmouseout=\"parent.fnMouseOutScroll(1);\"><a>&lt</a></td>"+
77+
"<td valign=top id=tdScroll class=\"clScroll2\" onclick=\"parent.fnScrollTabs(1);\" ondblclick=\"parent.fnScrollTabs(1);\" onmouseover=\"parent.fnMouseOverScroll(2);\" onmouseout=\"parent.fnMouseOutScroll(2);\"><a>&gt</a></td>"+
78+
"<td valign=top id=tdScroll class=\"clScroll\" onclick=\"parent.fnFastScrollTabs(1);\" onmouseover=\"parent.fnMouseOverScroll(3);\" onmouseout=\"parent.fnMouseOutScroll(3);\"><a>&#187;</a></td>"+
79+
"<td style=\"font:1pt\">&nbsp;<td></tr></table></body></html>";
80+
81+
with (frames['frScroll'].document) {
82+
open("text/html","replace");
83+
write(szHTML);
84+
close();
85+
}
86+
87+
szHTML =
88+
"<html><head>"+
89+
"<style>A:link,A:visited,A:active {text-decoration:none;"+"color:"+c_rgszClr[3]+";}"+
90+
".clTab {cursor:hand;background:"+c_rgszClr[1]+";font:9pt Arial;padding-left:3px;padding-right:3px;text-align:center;}"+
91+
".clBorder {background:"+c_rgszClr[2]+";font:1pt;}"+
92+
"</style></head><body onload=\"parent.fnInit();\" onselectstart=\"event.returnValue=false;\" ondragstart=\"event.returnValue=false;\" bgcolor="+c_rgszClr[4]+
93+
" topmargin=0 leftmargin=0><table id=tbTabs cellpadding=0 cellspacing=0>";
94+
95+
var iCellCount=(c_lTabs+1)*2;
96+
97+
var i;
98+
for (i=0;i<iCellCount;i+=2)
99+
szHTML+="<col width=1><col>";
100+
101+
var iRow;
102+
for (iRow=0;iRow<6;iRow++) {
103+
104+
szHTML+="<tr>";
105+
106+
if (iRow==5)
107+
szHTML+="<td colspan="+iCellCount+"></td>";
108+
else {
109+
if (iRow==0) {
110+
for(i=0;i<iCellCount;i++)
111+
szHTML+="<td height=1 class=\"clBorder\"></td>";
112+
} else if (iRow==1) {
113+
for(i=0;i<c_lTabs;i++) {
114+
szHTML+="<td height=1 nowrap class=\"clBorder\">&nbsp;</td>";
115+
szHTML+=
116+
"<td id=tdTab height=1 nowrap class=\"clTab\" onmouseover=\"parent.fnMouseOverTab("+i+");\" onmouseout=\"parent.fnMouseOutTab("+i+");\">"+
117+
"<a href=\""+document.all.item("shLink")[i].href+"\" target=\"frSheet\" id=aTab>&nbsp;"+c_rgszSh[i]+"&nbsp;</a></td>";
118+
}
119+
szHTML+="<td id=tdTab height=1 nowrap class=\"clBorder\"><a id=aTab>&nbsp;</a></td><td width=100%></td>";
120+
} else if (iRow==2) {
121+
for (i=0;i<c_lTabs;i++)
122+
szHTML+="<td height=1></td><td height=1 class=\"clBorder\"></td>";
123+
szHTML+="<td height=1></td><td height=1></td>";
124+
} else if (iRow==3) {
125+
for (i=0;i<iCellCount;i++)
126+
szHTML+="<td height=1></td>";
127+
} else if (iRow==4) {
128+
for (i=0;i<c_lTabs;i++)
129+
szHTML+="<td height=1 width=1></td><td height=1></td>";
130+
szHTML+="<td height=1 width=1></td><td></td>";
131+
}
132+
}
133+
szHTML+="</tr>";
134+
}
135+
136+
szHTML+="</table></body></html>";
137+
with (frames['frTabs'].document) {
138+
open("text/html","replace");
139+
charset=document.charset;
140+
write(szHTML);
141+
close();
142+
}
143+
}
144+
145+
function fnInit()
146+
{
147+
g_rglTabX[0]=0;
148+
var i;
149+
for (i=1;i<=c_lTabs;i++)
150+
with (frames['frTabs'].document.all.tbTabs.rows[1].cells[fnTabToCol(i-1)])
151+
g_rglTabX[i]=offsetLeft+offsetWidth-6;
152+
}
153+
154+
function fnTabToCol(iTab)
155+
{
156+
return 2*iTab+1;
157+
}
158+
159+
function fnNextTab(fDir)
160+
{
161+
var iNextTab=-1;
162+
var i;
163+
164+
with (frames['frTabs'].document.body) {
165+
if (fDir==0) {
166+
if (scrollLeft>0) {
167+
for (i=0;i<c_lTabs&&g_rglTabX[i]<scrollLeft;i++);
168+
if (i<c_lTabs)
169+
iNextTab=i-1;
170+
}
171+
} else {
172+
if (g_rglTabX[c_lTabs]+6>offsetWidth+scrollLeft) {
173+
for (i=0;i<c_lTabs&&g_rglTabX[i]<=scrollLeft;i++);
174+
if (i<c_lTabs)
175+
iNextTab=i;
176+
}
177+
}
178+
}
179+
return iNextTab;
180+
}
181+
182+
function fnScrollTabs(fDir)
183+
{
184+
var iNextTab=fnNextTab(fDir);
185+
186+
if (iNextTab>=0) {
187+
frames['frTabs'].scroll(g_rglTabX[iNextTab],0);
188+
return true;
189+
} else
190+
return false;
191+
}
192+
193+
function fnFastScrollTabs(fDir)
194+
{
195+
if (c_lTabs>16)
196+
frames['frTabs'].scroll(g_rglTabX[fDir?c_lTabs-1:0],0);
197+
else
198+
if (fnScrollTabs(fDir)>0) window.setTimeout("fnFastScrollTabs("+fDir+");",5);
199+
}
200+
201+
function fnSetTabProps(iTab,fActive)
202+
{
203+
var iCol=fnTabToCol(iTab);
204+
var i;
205+
206+
if (iTab>=0) {
207+
with (frames['frTabs'].document.all) {
208+
with (tbTabs) {
209+
for (i=0;i<=4;i++) {
210+
with (rows[i]) {
211+
if (i==0)
212+
cells[iCol].style.background=c_rgszClr[fActive?0:2];
213+
else if (i>0 && i<4) {
214+
if (fActive) {
215+
cells[iCol-1].style.background=c_rgszClr[2];
216+
cells[iCol].style.background=c_rgszClr[0];
217+
cells[iCol+1].style.background=c_rgszClr[2];
218+
} else {
219+
if (i==1) {
220+
cells[iCol-1].style.background=c_rgszClr[2];
221+
cells[iCol].style.background=c_rgszClr[1];
222+
cells[iCol+1].style.background=c_rgszClr[2];
223+
} else {
224+
cells[iCol-1].style.background=c_rgszClr[4];
225+
cells[iCol].style.background=c_rgszClr[(i==2)?2:4];
226+
cells[iCol+1].style.background=c_rgszClr[4];
227+
}
228+
}
229+
} else
230+
cells[iCol].style.background=c_rgszClr[fActive?2:4];
231+
}
232+
}
233+
}
234+
with (aTab[iTab].style) {
235+
cursor=(fActive?"default":"hand");
236+
color=c_rgszClr[3];
237+
}
238+
}
239+
}
240+
}
241+
242+
function fnMouseOverScroll(iCtl)
243+
{
244+
frames['frScroll'].document.all.tdScroll[iCtl].style.color=c_rgszClr[7];
245+
}
246+
247+
function fnMouseOutScroll(iCtl)
248+
{
249+
frames['frScroll'].document.all.tdScroll[iCtl].style.color=c_rgszClr[6];
250+
}
251+
252+
function fnMouseOverTab(iTab)
253+
{
254+
if (iTab!=g_iShCur) {
255+
var iCol=fnTabToCol(iTab);
256+
with (frames['frTabs'].document.all) {
257+
tdTab[iTab].style.background=c_rgszClr[5];
258+
}
259+
}
260+
}
261+
262+
function fnMouseOutTab(iTab)
263+
{
264+
if (iTab>=0) {
265+
var elFrom=frames['frTabs'].event.srcElement;
266+
var elTo=frames['frTabs'].event.toElement;
267+
268+
if ((!elTo) ||
269+
(elFrom.tagName==elTo.tagName) ||
270+
(elTo.tagName=="A" && elTo.parentElement!=elFrom) ||
271+
(elFrom.tagName=="A" && elFrom.parentElement!=elTo)) {
272+
273+
if (iTab!=g_iShCur) {
274+
with (frames['frTabs'].document.all) {
275+
tdTab[iTab].style.background=c_rgszClr[1];
276+
}
277+
}
278+
}
279+
}
280+
}
281+
282+
function fnSetActiveSheet(iSh)
283+
{
284+
if (iSh!=g_iShCur) {
285+
fnSetTabProps(g_iShCur,false);
286+
fnSetTabProps(iSh,true);
287+
g_iShCur=iSh;
288+
}
289+
}
290+
291+
window.g_iIEVer=fnGetIEVer();
292+
if (window.g_iIEVer>=4)
293+
fnBuildFrameset();
294+
//-->
295+
</script>
296+
<![endif]><!--[if gte mso 9]><xml>
297+
<x:ExcelWorkbook>
298+
<x:ExcelWorksheets>
299+
<x:ExcelWorksheet>
300+
<x:Name>Sheet1</x:Name>
301+
<x:WorksheetSource HRef="AM62LX_build_sheet_11.00.15_files/sheet001.htm"/>
302+
</x:ExcelWorksheet>
303+
</x:ExcelWorksheets>
304+
<x:Stylesheet HRef="AM62LX_build_sheet_11.00.15_files/stylesheet.css"/>
305+
<x:WindowHeight>12228</x:WindowHeight>
306+
<x:WindowWidth>28800</x:WindowWidth>
307+
<x:WindowTopX>6972</x:WindowTopX>
308+
<x:WindowTopY>32767</x:WindowTopY>
309+
<x:ProtectStructure>False</x:ProtectStructure>
310+
<x:ProtectWindows>False</x:ProtectWindows>
311+
</x:ExcelWorkbook>
312+
</xml><![endif]-->
313+
</head>
314+
315+
<frameset rows="*,39" border=0 width=0 frameborder=no framespacing=0>
316+
<frame src="AM62LX_build_sheet_11.00.15_files/sheet001.htm" name="frSheet">
317+
<frame src="AM62LX_build_sheet_11.00.15_files/tabstrip.htm" name="frTabs" marginwidth=0 marginheight=0>
318+
<noframes>
319+
<body>
320+
<p>This page uses frames, but your browser doesn't support them.</p>
321+
</body>
322+
</noframes>
323+
</frameset>
324+
</html>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<xml xmlns:o="urn:schemas-microsoft-com:office:office">
2+
<o:MainFile HRef="../AM62LX_build_sheet_11.00.15.htm"/>
3+
<o:File HRef="stylesheet.css"/>
4+
<o:File HRef="tabstrip.htm"/>
5+
<o:File HRef="sheet001.htm"/>
6+
<o:File HRef="image001.png"/>
7+
<o:File HRef="image002.png"/>
8+
<o:File HRef="filelist.xml"/>
9+
</xml>
6.58 KB
Loading
6.72 KB
Loading

0 commit comments

Comments
 (0)