8000 Add sqlite3 metadate · VXAPPS/sqlite_functions@5291ae8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5291ae8

Browse files
committed
Add sqlite3 metadate
Update documentation
1 parent 0463bc0 commit 5291ae8

File tree

5 files changed

+47
-3
lines changed

5 files changed

+47
-3
lines changed

docs/Doxyfile.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,10 @@ SKIP_FUNCTION_MACROS = YES
23752375
# the path). If a tag file is not located in the directory in which doxygen is
23762376
# run, you must also specify the path to the tagfile here.
23772377

2378-
TAGFILES = docs/cppreference-doxygen-web.tag.xml=https://en.cppreference.com/w/ docs/corefoundation-doxygen-web.tag.xml=https://developer.apple.com/documentation/corefoundation/ docs/magic_enum-doxygen-web.tag.xml=https://github.com/Neargye/
2378+
TAGFILES = docs/corefoundation-doxygen-web.tag.xml=https://developer.apple.com/documentation/corefoundation/ \
2379+
docs/cppreference-doxygen-web.tag.xml=https://en.cppreference.com/w/ \
2380+
docs/magic_enum-doxygen-web.tag.xml=https://github.com/Neargye/ \
2381+
docs/sqlite3-doxygen-web.tag.xml=https://sqlite.org/c3ref/
23792382

23802383
# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
23812384
# tag file that is based on the input files it reads. See section "Linking to

docs/cppreference-doxygen-web.tag.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@
6060
<name>std::enable_if_t</name>
6161
<filename>cpp/types/enable_if</filename>
6262
</compound>
63+
<compound kind="class">
64+
<name>std::error_category</name>
65+
<filename>cpp/error/error_category</filename>
66+
</compound>
67+
<compound kind="class">
68+
<name>std::error_code</name>
69+
<filename>cpp/error/error_code</filename>
70+
</compound>
6371
<compound kind="class">
6472
<name>std::false_type</name>
6573
<filename>cpp/header/type_traits</filename>
@@ -108,6 +116,10 @@
108116
<name>std::ios::app</name>
109117
<filename>cpp/io/ios_base/openmode</filename>
110118
</compound>
119+
<compound kind="class">
120+
<name>std::is_error_code_enum</name>
121+
<filename>cpp/error/error_code/is_error_code_enum</filename>
122+
</compound>
111123
<compound kind="class">
112124
<name>std::is_floating_point_v</name>
113125
<filename>cpp/types/is_floating_point</filename>

docs/post_doxygen.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,15 @@
5454
if pos == -1:
5555
break
5656

57-
replace = filedata.find('.html"', pos + 1)
57+
replace = filedata.find('.html"', pos)
5858
if replace == -1:
5959
continue
6060

61+
# except sqlite functions
62+
if 'sqlite' in filedata[pos:replace]:
63+
filedata = filedata[:replace+6] + ' target="_blank"' + filedata[replace+6:]
64+
continue
65+
6166
filedata = filedata[:replace] + '" target="_blank"' + filedata[replace+6:]
6267

6368
f = open(os.path.join(folder, file),'w')
@@ -82,7 +87,11 @@
8287
if replace == -1:
8388
continue
8489

85-
filedata = filedata[:replace] + '"' + filedata[replace+6:]
90+
# except sqlite functions
91+
if 'sqlite' in filedata[pos:replace]:
92+
continue
93+
94+
filedata = filedata[:replace] + '"' + filedata[replace + 6]
8695

8796
f = open(os.path.join(folder, file),'w')
8897
f.write(filedata)

docs/sqlite3-doxygen-web.tag.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<tagfile>
3+
<compound kind="class">
4+
<name>sqlite3</name>
5+
<filename>sqlite3.html</filename>
6+
</compound>
7+
<compound kind="class">
8+
<name>sqlite3_context</name>
9+
<filename>context.html</filename>
10+
</compound>
11+
<compound kind="class">
12+
<name>sqlite3_stmt</name>
13+
<filename>stmt.html</filename>
14+
</compound>
15+
<compound kind="class">
16+
<name>sqlite3_value</name>
17+
<filename>value.html</filename>
18+
</compound>
19+
</tagfile>

source/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ add_custom_target(${PROJECT_NAME}_documentation
6060
../docs/footer.html
6161
../docs/header.html
6262
../docs/magic_enum-doxygen-web.tag.xml
63+
../docs/sqlite3-doxygen-web.tag.xml
6364
../docs/post_doxygen.py
6465
../README.md
6566
)

0 commit comments

Comments
 (0)
0