|
| 1 | +Schnelleinstieg |
| 2 | +=============== |
| 3 | + |
| 4 | +Status |
| 5 | +------ |
| 6 | + |
| 7 | +.. image:: https://img.shields.io/github/contributors/cusyio/neural-network-tutorial.svg |
| 8 | + :alt: Contributors |
| 9 | + :target: https://github.com/cusyio/neural-network-tutorial/graphs/contributors |
| 10 | +.. image:: https://img.shields.io/github/license/cusyio/neural-network-tutorial.svg |
| 11 | + :alt: License |
| 12 | + :target: https://github.com/cusyio/neural-network-tutorial/blob/main/LICENSE |
| 13 | +.. image:: https://readthedocs.org/projects/neural-network-tutorial/badge/?version=latest |
| 14 | + :alt: Docs |
| 15 | + :target: https://neural-network-tutorial.readthedocs.io/de/latest/ |
| 16 | + |
| 17 | +Installation |
| 18 | +------------ |
| 19 | + |
| 20 | +#. Auschecken: |
| 21 | + |
| 22 | + .. code-block:: console |
| 23 | +
|
| 24 | + $ git clone [email protected]:cusyio/neural-network-tutorial.git |
| 25 | +
|
| 26 | +#. Installieren von Python-Paketen: |
| 27 | + |
| 28 | + … auf Linux/macOS: |
| 29 | + |
| 30 | + .. code-block:: console |
| 31 | +
|
| 32 | + $ python3 -m venv .venv |
| 33 | + $ . .venv/bin/activate |
| 34 | + $ python -m pip install --upgrade pip |
| 35 | + $ python -m pip install -e ".[dev]" |
| 36 | +
|
| 37 | + … auf Windows: |
| 38 | + |
| 39 | + .. code-block:: ps1con |
| 40 | +
|
| 41 | + C:> py -m venv .venv |
| 42 | + C:> .\.venv\Scripts\activate.bat |
| 43 | + C:> python -m pip install --upgrade pip |
| 44 | + C:> python -m pip install -e ".[dev]" |
| 45 | +
|
| 46 | +#. Erstellen der HTML-Dokumentation: |
| 47 | + |
| 48 | + .. note:: |
| 49 | + pandoc muss installiert sein. |
| 50 | + |
| 51 | + … auf Debian/Ubuntu: |
| 52 | + |
| 53 | + .. code-block:: console |
| 54 | +
|
| 55 | + $ sudo apt install pandoc |
| 56 | +
|
| 57 | + Zum Erstellen der HTML-Dokumentation führt den folgenden Befehl aus: |
| 58 | + |
| 59 | + .. code-block:: console |
| 60 | +
|
| 61 | + $ sphinx-build -ab html docs/ docs/_build/html/ |
| 62 | +
|
| 63 | +#. Erstellen eines PDF: |
| 64 | + |
| 65 | + Zum Erstellen einer PDF-Dokumentation benötigt ihr zusätzliche Pakete, die |
| 66 | + ihr installieren könnt |
| 67 | + |
| 68 | + … auf Debian/Ubuntu mit |
| 69 | + |
| 70 | + .. code-block:: console |
| 71 | +
|
| 72 | + $ sudo apt install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended latexmk |
| 73 | +
|
| 74 | + … auf macOS mit |
| 75 | + |
| 76 | + .. code-block:: console |
| 77 | +
|
| 78 | + $ brew cask install mactex |
| 79 | + … |
| 80 | + 🍺 mactex was successfully installed! |
| 81 | + $ curl --remote-name https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts |
| 82 | + $ sudo texlua install-getnonfreefonts |
| 83 | + … |
| 84 | + mktexlsr: Updating /usr/local/texlive/2020/texmf-dist/ls-R... |
| 85 | + mktexlsr: Done. |
| 86 | +
|
| 87 | + Anschließend könnt ihr ein PDF generieren mit: |
| 88 | + |
| 89 | + .. code-block:: console |
| 90 | +
|
| 91 | + $ cd docs/ |
| 92 | + $ make latexpdf |
| 93 | + … |
| 94 | + The LaTeX files are in _build/latex. |
| 95 | + Run 'make' in that directory to run these through (pdf)latex |
| 96 | + … |
| 97 | +
|
| 98 | + Das PDF findet ihr dann in ``docs/_build/latex/pythonbasics.pdf``. |
| 99 | + |
| 100 | +Folgt uns |
| 101 | +--------- |
| 102 | + |
| 103 | +* `GitHub <https://github.com/cusyio/neural-network-tutorial>`_ |
| 104 | + |
| 105 | +Pull-Requests |
| 106 | +------------- |
| 107 | + |
| 108 | +Wenn ihr Vorschläge für Verbesserungen und Ergänzungen habt, empfehlen wir euch, |
| 109 | +einen `Fork <https://github.com/cusyio/neural-network-tutorial/fork>`_ unseres |
| 110 | +`GitHub Repository <https://github.com/cusyio/neural-network-tutorial/>`_ zu |
| 111 | +erstellen und eure Änderungen dort zu machen. Bevor ihr Commits macht, |
| 112 | +überprüft, ob die pre-commit-Checks erfolgreich durchlaufen: |
| 113 | + |
| 114 | +.. code-block:: console |
| 115 | +
|
| 116 | + $ cd neural-network-tutorial |
| 117 | + $ pre-commit install |
0 commit comments