-
Notifications
You must be signed in to change notification settings - Fork 188
[TASK] Document the GitLab template #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
148 changes: 148 additions & 0 deletions
148
Documentation/ProjectTemplates/GitLabTemplate/Index.rst
This file contains hidden or 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,148 @@ | ||
| :navigation-title: GitLab template | ||
|
|
||
| .. include:: /Includes.rst.txt | ||
| .. _gitlab-template: | ||
|
|
||
| ========================================================== | ||
| Creating a TYPO3 project from the official GitLab template | ||
| ========================================================== | ||
|
|
||
| .. admonition:: Prerequisites | ||
|
|
||
| * Knowledge about Git | ||
| * A GitLab account or self-hosted GitLab | ||
| * Planning to do deployment | ||
| * DDEV and Git installed locally | ||
|
|
||
| .. _gitlab-template-create: | ||
|
|
||
| Create from template | ||
| ==================== | ||
|
|
||
| Go to page `GitLab - New from template <https://gitlab.com/projects/new#create_from_template>`_ | ||
| or to path `/new#create_from_template` on your self-hosted GitLab. And chose | ||
| :guilabel:`TYPO3 Distribution` from the list: | ||
|
|
||
| .. figure:: UseTemplate.png | ||
| :alt: The "TYPO3 Distribution" entry on the "Create from template" page on GitLab. | ||
|
|
||
| Click on "Use template" | ||
|
|
||
| .. _gitlab-template-create-details: | ||
|
|
||
| Fill in project details | ||
| ======================= | ||
|
|
||
| .. figure:: ProjectDetails.png | ||
| :alt: Detail page when creating a project from a template in GitLab | ||
|
|
||
| Fill in the details | ||
|
|
||
| .. _gitlab-template-clone: | ||
|
|
||
| Clone the project | ||
| ================= | ||
|
|
||
| Clone the project to your local maschine. You can download the SSH link from | ||
linawolf marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| the :guilabel:`Code` dropdown: | ||
|
|
||
| .. figure:: GitClone.png | ||
| :alt: Screenshot demonstration the location of the Code button where you can copy the Clone with SSH link | ||
|
|
||
| Copy the "Clone with SSH" link | ||
|
|
||
| Then clone the repository: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| git clone git@gitlab.com:linawolf/getting-started-with-the-gitlab-template.git | ||
|
|
||
| .. note:: | ||
| You need an `SSH key (GitLab docu) <https://docs.gitlab.com/user/ssh/>` to | ||
| do this. | ||
|
|
||
| .. _gitlab-template-setup: | ||
|
|
||
| Start DDEV and setup TYPO3 | ||
| ========================== | ||
|
|
||
| You can start and setup the project locally in DDEV using the built-in command: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| ddev typo3-init | ||
|
|
||
| See also file :file:`Readme.md` in the root of your project. | ||
|
|
||
|
|
||
| This step automatically creates several files that should be added to git: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| $ git status | ||
| On branch main | ||
| Your branch is up to date with 'origin/main'. | ||
|
|
||
| Untracked files: | ||
| (use "git add <file>..." to include in what will be committed) | ||
| composer.lock | ||
| config/sites/ | ||
| package-lock.json | ||
|
|
||
| nothing added to commit but untracked files present (use "git add" to track) | ||
|
|
||
| $ git add . | ||
|
|
||
| :file:`composer.lock` | ||
| This file contains the information which exact versions of PHP packages | ||
| are installed. | ||
| :file:`package-lock.json` | ||
| This file contains the information which exact versions of npm packages | ||
| are installed. | ||
| :file:`config/sites/` | ||
| Contains configuration and settings of the site that was created during | ||
| setup. | ||
|
|
||
| .. _gitlab-template-login: | ||
|
|
||
| Log into the TYPO3 backend | ||
| ========================== | ||
|
|
||
| If allowed by your system the TYPO3 backend login will be automatically opened | ||
| in a browser. Otherwise you can open a browser of your choice with the | ||
| link displayed in the console. | ||
|
|
||
| A default user has been created. Username and password are displayed in your | ||
| console. | ||
|
|
||
| .. figure:: Backend.png | ||
| :alt: TYPO3 Backend of a project created with the GitLab Template | ||
|
|
||
| Once logged in, you can preview a page and see it rendered with a basic theme. | ||
|
|
||
| .. _gitlab-template-directory: | ||
|
|
||
| Directory structure of the project | ||
| ================================== | ||
|
|
||
| .. directory-tree:: | ||
|
|
||
| * :path:`.ddev` DDEV configuration | ||
| * :path:`assets` assets for a basic theme that will be built by vite | ||
| * :path:`config` system and site configuration created during setup | ||
| * :path:`node_modules` Managed by npm and vite | ||
| * :path:`packages` | ||
|
|
||
| * :path:`site-distribution` basic site package that you can adjust | ||
|
|
||
| * :path:`public` webroot of the server | ||
| * :path:`var` you can find the logs and other temporary files here | ||
| * :path:`vendor` all packages are installed here | ||
| * :file:`composer.json` constraints for | ||
| * :file:`composer.lock` contains the information which exact versions | ||
| of PHP packages are installed. | ||
| * :file:`package.json` constraints for frontend libraries | ||
| * :file:`package-lock.json` contains the information which exact versions | ||
| of npm packages are installed. | ||
| * :file:`vite.config.js` predefined vite configuration | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,34 @@ | ||
| :navigation-title: Project templates | ||
|
|
||
| .. include:: /Includes.rst.txt | ||
| .. _project-templates: | ||
|
|
||
| =================================== | ||
| Project templates for a quick start | ||
| =================================== | ||
|
|
||
| .. toctree:: | ||
| :hidden: | ||
| :titlesonly: | ||
|
|
||
| IntroductionPackage/Index | ||
| GitLabTemplate/Index | ||
|
|
||
| .. card-grid:: | ||
| :columns: 1 | ||
| :columns-md: 2 | ||
| :gap: 4 | ||
| :class: pb-4 | ||
| :card-height: 100 | ||
|
|
||
| .. card:: `Introduction Package <https://docs.typo3.org/permalink/t3start:introductionpackage-index>`_ | ||
|
|
||
| Creates a site with some predefined content based on the extension | ||
| :composer:`bk2k/bootstrap-package` for theming. | ||
|
|
||
| .. card:: :ref:`Official GitLab template <gitlab-template>` | ||
|
|
||
| Creates a project based on DDEV and Composer for you with a basic site | ||
| package, vite and some example data. The project is prepared to be kept | ||
| under `Version control <https://docs.typo3.org/permalink/t3coreapi:version-control>`_ | ||
| and for deployment with `Deployer <https://docs.typo3.org/permalink/t3coreapi:deployment-deployer>`_. |
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.