-
-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3503 from lonvia/mkdocs-without-cmake
Build documentation without CMake
- Loading branch information
Showing
18 changed files
with
256 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
*.swp | ||
|
||
docs/develop/*.png | ||
site-html | ||
|
||
build | ||
dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,16 @@ lint: | |
bdd: | ||
cd test/bdd; behave -DREMOVE_TEMPLATE=1 | ||
|
||
.PHONY: tests mypy pytest lint bdd build clean-build build-db build-api | ||
# Documentation | ||
|
||
doc: | ||
mkdocs build | ||
|
||
serve-doc: | ||
mkdocs serve | ||
|
||
manpage: | ||
argparse-manpage --pyfile man/create-manpage.py --function get_parser --project-name Nominatim --url https://nominatim.org > man/nominatim.1 --author 'the Nominatim developer community' --author-email [email protected] | ||
|
||
|
||
.PHONY: tests mypy pytest lint bdd build clean-build build-db build-api doc serve-doc manpage |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# | ||
# This file is part of Nominatim. (https://nominatim.org) | ||
# | ||
# Copyright (C) 2024 by the Nominatim developer community. | ||
from pathlib import Path | ||
|
||
import mkdocs_gen_files | ||
|
||
VAGRANT_PATH = Path(__file__, '..', '..', 'vagrant').resolve() | ||
|
||
for infile in VAGRANT_PATH.glob('Install-on-*.sh'): | ||
outfile = f"admin/{infile.stem}.md" | ||
title = infile.stem.replace('-', ' ') | ||
|
||
with mkdocs_gen_files.open(outfile, "w") as outfd, infile.open() as infd: | ||
print("#", title, file=outfd) | ||
has_empty = False | ||
for line in infd: | ||
line = line.rstrip() | ||
docpos = line.find('#DOCS:') | ||
if docpos >= 0: | ||
line = line[docpos + 6:] | ||
elif line == '#' or line.startswith('#!'): | ||
line = '' | ||
elif line.startswith('# '): | ||
line = line[2:] | ||
if line or not has_empty: | ||
print(line, file=outfd) | ||
has_empty = not bool(line) | ||
|
||
mkdocs_gen_files.set_edit_path(outfile, "docs/mk_install_instructions.py") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import sys | ||
import os | ||
from pathlib import Path | ||
|
||
sys.path.append(str(Path(__file__, '..', '..', 'src').resolve())) | ||
|
||
from nominatim_db.cli import get_set_parser | ||
|
||
def get_parser(): | ||
parser = get_set_parser() | ||
|
||
return parser.parser |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.