Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
9ce6e816e1 | |||
78843781b1 | |||
d5e38ecede | |||
41425c3d8b | |||
6497b438f1 |
33
README.md
33
README.md
@ -6,8 +6,12 @@ The template itself is in the `{{cookiecutter.thesis_type}}-{{cookiecutter.thesi
|
|||||||
In order to generate a project from the template:
|
In order to generate a project from the template:
|
||||||
|
|
||||||
* install cookiecutter
|
* install cookiecutter
|
||||||
* find a cookiecutter-applica-pypackage release applicable (usually the latest release/tag listed at <https://git.wmi.amu.edu.pl/filipg/cookiecutter-amu-thesis>), say VERSION
|
* find a cookiecutter-amu-thesis release applicable (usually the latest release/tag listed at <https://git.wmi.amu.edu.pl/filipg/cookiecutter-amu-thesis>), say VERSION
|
||||||
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/cookiecutter-amu-thesis.git --checkout VERSION`
|
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/cookiecutter-amu-thesis.git --checkout VERSION`
|
||||||
|
* configure a repository called `msc-YOURSURNAME` at
|
||||||
|
<https://git.wmi.amu.edu.pl> (see
|
||||||
|
<http://filipg-jenkins.wmi.amu.edu.pl/Repos> for more information), grant read and write
|
||||||
|
access rights to Filip Graliński
|
||||||
|
|
||||||
Interoperation with Overleaf
|
Interoperation with Overleaf
|
||||||
----------------------------
|
----------------------------
|
||||||
@ -15,31 +19,34 @@ Interoperation with Overleaf
|
|||||||
Overleaf handles git but it's very cr*ppy. It's better to upload a
|
Overleaf handles git but it's very cr*ppy. It's better to upload a
|
||||||
package to Overleaf first:
|
package to Overleaf first:
|
||||||
|
|
||||||
|
0. You need LaTeX installed (e.g. in Ubuntu, you'd need to do: `sudo apt install texlive-latex-full`).
|
||||||
1. Create a project locally.
|
1. Create a project locally.
|
||||||
2. Run `make`
|
2. Run `make`
|
||||||
3. Run `make source-pack`
|
3. Run `make source-pack`
|
||||||
4. Upload the zip file to Overleaf.
|
4. Check whether you have an account at http://filipg-jenkins.wmi.amu.edu.pl:8090,
|
||||||
5. Copy project to some other place.
|
if not, sign up there (see also http://filipg-jenkins.wmi.amu.edu.pl/Jenkins).
|
||||||
5. Clone the repo from Overleaf: `git clone https://git.overleaf.com/FUNNY-OVERLEAF-CODE PAPERID-paper`
|
5. Send the zip file to Filip Graliński along with your login at Jenkins and wait for the reply.
|
||||||
6. Set remotes:
|
6. Copy project to some other place.
|
||||||
|
7. Clone the repo from Overleaf: `git clone https://git.overleaf.com/FUNNY-OVERLEAF-CODE PAPERID-paper`
|
||||||
|
8. Set remotes:
|
||||||
|
|
||||||
```
|
```
|
||||||
git remote add overleaf https://git.overleaf.com/FUNNY-OVERLEAF-CODE
|
git remote add overleaf https://git.overleaf.com/FUNNY-OVERLEAF-CODE
|
||||||
git remote set-url origin git@git.wmi.amu.edu.pl:YOURID/YOUR-GITLAB-REPO
|
git remote set-url origin git@git.wmi.amu.edu.pl:YOURID/YOUR-GITLAB-REPO
|
||||||
```
|
```
|
||||||
|
|
||||||
7. Set credential helper so that stupid Overleaf won't ask about
|
8. Set credential helper so that stupid Overleaf won't ask about
|
||||||
password: `git config credential.helper "cache --timeout=10000000"`
|
password: `git config credential.helper "cache --timeout=10000000"`
|
||||||
8. Unfortunately, Overleaf will discard hidden files (`.*`) when a zip
|
9. Unfortunately, Overleaf will discard hidden files (`.*`) when a zip
|
||||||
is uploaded, also file permissions will be somewhat broken (did I
|
is uploaded, also file permissions will be somewhat broken (did I
|
||||||
tell you how much I hate Overleaf?)
|
tell you how much I hate Overleaf?)
|
||||||
9. … so you need to copy `.cookiecutter.yml` file and re-apply the template (`cookiecutter https://git.wmi.amu.edu.pl/filipg/cookiecutter-amu-thesis.git --checkout VERSION --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`)
|
10. … so you need to copy `.cookiecutter.yml` file and re-apply the template (`cookiecutter https://git.wmi.amu.edu.pl/filipg/cookiecutter-amu-thesis.git --checkout VERSION --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`)
|
||||||
10. Re-commit the files (including recovered `.*` files).
|
11. Re-commit the files (including recovered `.*` files).
|
||||||
11. Push the repo to Overleaf (fortunately, the `.*` will be treated
|
12. Push the repo to Overleaf (fortunately, the `.*` will be treated
|
||||||
correctly when this is done by git): `git push overleaf master`
|
correctly when this is done by git): `git push overleaf master`
|
||||||
12. Push the repo to GitLab. `git push origin master`
|
13. Push the repo to GitLab. `git push origin master`
|
||||||
13. Set the Overleaf git remote in `helpers/vars`
|
14. Set the Overleaf git remote in `helpers/vars`
|
||||||
14. Now you can synchronize between GitLab repo and Overleaf manually or using `helpers/synchro.sh` script
|
15. Now you can synchronize between GitLab repo and Overleaf manually or using `helpers/synchro.sh` script
|
||||||
|
|
||||||
Updating package with updated template
|
Updating package with updated template
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user