-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e7e2c2c
Showing
1 changed file
with
31 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# plenoptic-docs | ||
|
||
> [!CAUTION] | ||
> This repo should not be edited manually. | ||
Built workshop materials for the plenoptic package. Note that this repository | ||
just contains the *built* documentation for the package, the source of the | ||
documentation lies in other repos from the [plenoptic | ||
organization](https://github.com/plenoptic-org) (generally those with "workshop" | ||
in the title). | ||
|
||
We use this repo essentially as a webserver: the html is placed here and then | ||
hosted on github pages, and we treat this repo as "shallow", not tracking the | ||
history. The building and pushing is all handled by Jenkins jobs triggered in | ||
the main repo. | ||
|
||
## How to delete history every push | ||
|
||
> [!CAUTION] | ||
> In general, this is an exceedingly bad idea. We do this here because we don't care about our git history **at all**. | ||
In order to keep the git history at a single commit, we remove `.git` and re-initialize it every time: | ||
|
||
``` sh | ||
rm -rf .git | ||
git init | ||
git remote add origin [email protected]:plenoptic-org/plenoptic-workshops.git | ||
git add . | ||
git commit -m "Updates files" | ||
git push -f origin main | ||
``` |