@@ -10,32 +10,10 @@ def change_file_ext(filename, extension):
10
10
return os .path .splitext (filename )[0 ] + '.' + extension
11
11
12
12
def get_global_subitems ():
13
- items = [
14
- {
15
- "title" : "Product Information Portal" ,
16
- "description" : "Raspberry Pi compliance documents" ,
17
- "imagepath" : "/images/full-sized/PIP.png" ,
18
- "url" : "https://pip.raspberrypi.com/"
19
- },
20
- {
21
- "title" : "Datasheets" ,
22
- "description" : "PDF-based documentation" ,
23
- "imagepath" : "/images/full-sized/Datasheets.png" ,
24
- "url" : "https://datasheets.raspberrypi.com"
25
- },
26
- {
27
- "title" : "Tutorials" ,
28
- "description" : "Hands-on hardware and software tutorials" ,
29
- "imagepath" : "/images/full-sized/Tutorials.png" ,
30
- "url" : "https://www.raspberrypi.com/tutorials/"
31
- },
32
- {
33
- "title" : "Forums" ,
34
- "description" : "User and product support forums" ,
35
- "imagepath" : "/images/full-sized/Forums.png" ,
36
- "url" : "https://forums.raspberrypi.com"
37
- }
38
- ]
13
+ scripts_dir = os .path .dirname (__file__ )
14
+ json_path = os .path .join (scripts_dir , "global_boxes.json" )
15
+ with open (json_path ) as json_fh :
16
+ items = json .load (json_fh )
39
17
return items
40
18
41
19
def build_tab_from_json (tab , adoc_dir ):
0 commit comments