-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "chore: Allow deploying from main repo"
This reverts commit fcd3308.
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 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 |
---|---|---|
|
@@ -125,10 +125,19 @@ def docs_deploy(ctx: Context) -> None: | |
with material_insiders() as insiders: | ||
if not insiders: | ||
ctx.run(lambda: False, title="Not deploying docs without Material for MkDocs Insiders!") | ||
ctx.run( | ||
tools.mkdocs.gh_deploy(force=True), | ||
title="Deploying documentation", | ||
) | ||
origin = ctx.run("git config --get remote.origin.url", silent=True, allow_overrides=False) | ||
if "pawamoy-insiders/markdown-exec" in origin: | ||
ctx.run("git remote add upstream [email protected]:pawamoy/markdown-exec", silent=True, nofail=True) | ||
ctx.run( | ||
tools.mkdocs.gh_deploy(remote_name="upstream", force=True), | ||
title="Deploying documentation", | ||
) | ||
else: | ||
ctx.run( | ||
lambda: False, | ||
title="Not deploying docs from public repository (do that from insiders instead!)", | ||
nofail=True, | ||
) | ||
|
||
|
||
@duty | ||
|