-
Notifications
You must be signed in to change notification settings - Fork 3
/
generate_raw_docs.py
47 lines (44 loc) · 1.54 KB
/
generate_raw_docs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"""
Loops through the APIs and generates the raw documentation files for each API.
"""
from __future__ import annotations
from EmsiApiPy import ACSIndicatorsConnection
from EmsiApiPy import AggregateProfilesConnection
from EmsiApiPy import AutomationIndexConnection
from EmsiApiPy import CanadaPostingsConnection
from EmsiApiPy import CompaniesConnection
from EmsiApiPy import GeographyConnection
from EmsiApiPy import GlobalPostingsConnection
from EmsiApiPy import GlobalProfilesConnection
from EmsiApiPy import IpedsConnection
from EmsiApiPy import SkillsClassificationConnection
from EmsiApiPy import TalentBenchmarkConnection
from EmsiApiPy import TitlesConnection
from EmsiApiPy import UKPostingsConnection
from EmsiApiPy import UnitedStatesPostingsConnection
from EmsiApiPy import UsOccupationEarningsConnection
for connection in [
AutomationIndexConnection,
AggregateProfilesConnection,
CanadaPostingsConnection,
UnitedStatesPostingsConnection,
ACSIndicatorsConnection,
SkillsClassificationConnection,
TitlesConnection,
UsOccupationEarningsConnection,
GeographyConnection,
IpedsConnection,
UKPostingsConnection,
TalentBenchmarkConnection,
GlobalProfilesConnection,
GlobalPostingsConnection,
CompaniesConnection,
# these apis don't have a "docs" endpoint
# UsCompensationConnection,
# USInputOutputConncetion,
# CoreLMIConnection,
]:
conn = connection()
doc_string = conn.get_docs()
with open(f"docs/raw_doc_pages/{conn.name}.md", "w+") as out_file:
out_file.write(doc_string)