Skip to content

Commit cf5f780

Browse files
authored
added support for upload actions (#64)
* added support for upload actions * doc refactoring
1 parent 4c2cf3c commit cf5f780

33 files changed

+682
-304
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"symfony/http-client": "^7.0",
1515
"symfony/property-access": "^7.0",
1616
"phpseclib/phpseclib": "^3.0",
17-
"phpdocumentor/reflection-docblock": "^5.3"
17+
"phpdocumentor/reflection-docblock": "^5.3",
18+
"symfony/finder": "^7.0"
1819
},
1920
"require-dev": {
2021
"phpunit/phpunit": "^11.0",

composer.lock

Lines changed: 66 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/assets/app.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@
4141
"scss/05_components/components.menu",
4242
"scss/05_components/components.main",
4343
"scss/05_components/components.footer",
44-
"scss/05_components/components.404";
44+
"scss/05_components/components.404",
45+
"scss/05_components/components.doc";

doc/assets/scss/02_generics/_generics.reset.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ address {
6161
ol, ul, dl {
6262
list-style-type: none;
6363
margin: 0;
64-
padding: 0;
64+
padding: 0 0 0 2rem;
6565
}
6666

6767
ol ol, ul ul, ol ul, ul ol {

doc/assets/scss/03_elements/_elements.page.scss

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -63,31 +63,9 @@ li {
6363

6464
pre,
6565
code {
66-
font-size: 1.5rem;
67-
line-height: 2.2rem;
66+
font-size: 1.4rem;
6867
border: 1px solid #e8e8e8;
6968
border-radius: 3px;
70-
background-color: #eef;
71-
}
72-
73-
pre {
74-
margin-bottom: 1.6rem;
75-
76-
code {
77-
border: 0;
78-
padding: 0.8rem 1.2rem;
79-
overflow-x: auto;
80-
display: block;
81-
color: var(--color-code);
82-
83-
&.language-bash {
84-
background-color: var(--color-code-bg-bash);
85-
}
86-
87-
&.language-yaml {
88-
background-color: var(--color-code-bg-yaml);
89-
}
90-
}
9169
}
9270

9371

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.c-doc {
2+
a {
3+
text-decoration: underline !important;
4+
}
5+
}

doc/layouts/_base.html.twig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
<script src="{{ asset('typewriter.js') }}"></script>
1515
{% else %}
1616
<script src="{{ asset('page.js') }}"></script>
17-
{% endif %}
17+
18+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
19+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
20+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/bash.min.js"></script>
21+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/yaml.min.js"></script>
22+
<script>hljs.highlightAll();</script>
23+
{% endif %}
1824

1925
{%- include 'partials/metatags.html.twig' with {page, site} only ~%}
2026

doc/layouts/page.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
{% endblock %}
66

77
{% block content %}
8-
{{ page.content }}
8+
<div class="c-doc">
9+
{{ page.content }}
10+
</div>
911
{% endblock %}

doc/pages/deployment-strategies.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: "Deployment strategies"
3+
menu:
4+
main:
5+
weight: 30
6+
---
7+
8+
# Deployment strategies Automate
9+
10+
Automate offers three deployment options, each tailored to specific needs:
11+
12+
### 1. Git Deployment
13+
14+
In this approach, you specify a repository in Automate's configuration.
15+
Automate then clones this repository and uses commands to prepare the application directly on the remote server.
16+
This method is the simplest to implement.
17+
18+
example :
19+
20+
~~~~yaml
21+
repository: git@github.com:symfony/symfony-demo.git
22+
on_deploy:
23+
- composer install
24+
- yarn install
25+
- yarn build
26+
post_deploy:
27+
- cmd: "php bin/console doctrine:migrations:migrate"
28+
only: [ dev-example-front-01]
29+
~~~~
30+
31+
### 2. Continuous Integration (CI) + Automate
32+
33+
Utilize your continuous integration (CI) tools to perform build steps in your CI environment.
34+
Then, Automate is used to push files directly to the server without using Git.
35+
This approach allows executing commands on the server at the end of the process, such as updating your database.
36+
37+
example :
38+
39+
~~~~yaml
40+
# do not specify a repository
41+
pre_deploy:
42+
- upload: .
43+
exclude: [node_modules]
44+
post_deploy:
45+
- cmd: "php bin/console doctrine:migrations:migrate"
46+
only: [ dev-example-front-01]
47+
~~~~
48+
49+
### 3. Mixed Deployment
50+
51+
In this setup, you use Git to download your sources and then send only specific files or folders from your CI.
52+
For example, you might only send the build of your assets. This approach combines the simplicity of Git with the flexibility of custom deployment.
53+
~~~~yaml
54+
repository: git@github.com:symfony/symfony-demo.git
55+
pre_deploy:
56+
- upload: public/build
57+
post_deploy:
58+
- cmd: "php bin/console doctrine:migrations:migrate"
59+
only: [ dev-example-front-01]
60+
~~~~
61+
62+

doc/pages/deployment.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)