Skip to content

Commit 8efc947

Browse files
Tpojkajaviereguiluz
authored andcommitted
Minor change in description
1 parent 0f832cc commit 8efc947

File tree

493 files changed

+22850
-18006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

493 files changed

+22850
-18006
lines changed

.doctor-rst.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
rules:
22
american_english: ~
33
avoid_repetetive_words: ~
4+
blank_line_after_anchor: ~
45
blank_line_after_directive: ~
56
blank_line_before_directive: ~
67
composer_dev_option_not_at_the_end: ~
78
correct_code_block_directive_based_on_the_content: ~
89
deprecated_directive_should_have_version: ~
10+
ensure_exactly_one_space_between_link_definition_and_link: ~
11+
ensure_link_definition_contains_valid_url: ~
912
ensure_order_of_code_blocks_in_configuration_block: ~
1013
extend_abstract_controller: ~
1114
extension_xlf_instead_of_xliff: ~
1215
indention: ~
1316
lowercase_as_in_use_statements: ~
1417
max_blank_lines:
1518
max: 2
19+
max_colons: ~
1620
no_app_console: ~
1721
no_blank_line_after_filepath_in_php_code_block: ~
1822
no_blank_line_after_filepath_in_twig_code_block: ~
1923
no_blank_line_after_filepath_in_xml_code_block: ~
2024
no_blank_line_after_filepath_in_yaml_code_block: ~
2125
no_brackets_in_method_directive: ~
2226
no_composer_req: ~
27+
no_directive_after_shorthand: ~
2328
no_explicit_use_of_code_block_php: ~
2429
no_inheritdoc: ~
2530
no_namespace_after_use_statements: ~
@@ -34,6 +39,7 @@ rules:
3439
short_array_syntax: ~
3540
space_between_label_and_link_in_doc: ~
3641
space_between_label_and_link_in_ref: ~
42+
string_replacement: ~
3743
typo: ~
3844
unused_links: ~
3945
use_deprecated_directive_instead_of_versionadded: ~
@@ -65,6 +71,7 @@ whitelist:
6571
- '/``.yml``/'
6672
- '/(.*)\.orm\.yml/' # currently DoctrineBundle only supports .yml
6773
- '/rst-class/'
74+
- /docker-compose\.yml/
6875
lines:
6976
- 'in config files, so the old ``app/config/config_dev.yml`` goes to'
7077
- '#. The most important config file is ``app/config/services.yml``, which now is'
@@ -73,7 +80,7 @@ whitelist:
7380
- 'The bin/console Command'
7481
- '# username is your full Gmail or Google Apps email address'
7582
- '.. _`LDAP injection`: http://projects.webappsec.org/w/page/13246947/LDAP%20Injection'
76-
- '.. versionadded:: 0.21.0' # Encore
83+
- '.. versionadded:: 1.9.0' # Encore
7784
- '.. versionadded:: 0.28.4' # Encore
7885
- '.. versionadded:: 2.4.0' # SwiftMailer
7986
- '.. versionadded:: 1.30' # Twig
@@ -83,6 +90,7 @@ whitelist:
8390
- '.. versionadded:: 1.3' # MakerBundle
8491
- '.. versionadded:: 1.8' # MakerBundle
8592
- '.. versionadded:: 1.6' # Flex in setup/upgrade_minor.rst
93+
- '.. versionadded:: 1.0.0' # Encore
8694
- '0 => 123' # assertion for var_dumper - components/var_dumper.rst
8795
- '1 => "foo"' # assertion for var_dumper - components/var_dumper.rst
8896
- '123,' # assertion for var_dumper - components/var_dumper.rst
@@ -95,3 +103,8 @@ whitelist:
95103
- 'provides a ``loginUser()`` method to simulate logging in in your functional'
96104
- '.. code-block:: twig'
97105
- '.. versionadded:: 3.6' # MonologBundle
106+
- '// bin/console'
107+
- 'End to End Tests (E2E)'
108+
- '.. code-block:: php'
109+
- '.. _`a feature to test applications using Mercure`: https://github.com/symfony/panther#creating-isolated-browsers-to-test-apps-using-mercure-or-websocket'
110+
- '.. End to End Tests (E2E)'

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# GithubActions workflows
2+
/.github/workflows* @OskarStark
3+
14
# Console
25
/console* @chalasr
36
/components/console* @chalasr

.github/workflows/ci.yaml

Lines changed: 95 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: CI
2+
13
on:
24
push:
35
branches-ignore:
@@ -6,83 +8,51 @@ on:
68
branches-ignore:
79
- 'github-comments'
810

9-
name: CI
10-
1111
jobs:
12-
build:
13-
name: Build
12+
symfony-docs-builder-build:
13+
name: Build (symfony-tools/docs-builder)
1414

1515
runs-on: ubuntu-latest
1616

17+
continue-on-error: true
18+
1719
steps:
1820
- name: "Checkout"
1921
uses: actions/checkout@v2
2022

21-
- name: "Set up Python 3.7"
22-
uses: actions/setup-python@v1
23+
- name: "Set-up PHP"
24+
uses: shivammathur/setup-php@v2
2325
with:
24-
python-version: '3.7' # Semantic version range syntax or exact version of a Python version
25-
26-
- name: "Display Python version"
27-
run: python -c "import sys; print(sys.version)"
26+
php-version: 8.0
27+
coverage: none
28+
tools: "composer:v2"
2829

29-
- name: "Install Sphinx dependencies"
30-
run: sudo apt-get install python-dev build-essential
30+
- name: Get composer cache directory
31+
id: composercache
32+
working-directory: _build
33+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
3134

32-
- name: "Cache pip"
35+
- name: Cache dependencies
3336
uses: actions/cache@v2
3437
with:
35-
path: ~/.cache/pip
36-
key: ${{ runner.os }}-pip-${{ hashFiles('_build/.requirements.txt') }}
37-
restore-keys: |
38-
${{ runner.os }}-pip-
38+
path: ${{ steps.composercache.outputs.dir }}
39+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
40+
restore-keys: ${{ runner.os }}-composer-
3941

40-
- name: "Install Sphinx + requirements via pip"
41-
run: pip install -r _build/.requirements.txt
42+
- name: "Install dependencies"
43+
working-directory: _build
44+
run: composer install --prefer-dist --no-progress
4245

43-
- name: "Build documentation"
44-
run: make -C _build SPHINXOPTS="-nqW -j auto" html
46+
- name: "Build the docs"
47+
working-directory: _build
48+
run: php build.php -vvv
4549

46-
build-php:
47-
name: Symfony doc builder
48-
49-
runs-on: ubuntu-latest
50-
51-
continue-on-error: true
52-
53-
steps:
54-
- name: "Checkout"
55-
uses: actions/checkout@v2
56-
57-
- name: "Set-up PHP"
58-
uses: shivammathur/setup-php@v2
59-
with:
60-
php-version: 7.2
61-
coverage: none
62-
tools: "composer:v2"
63-
64-
- name: Get composer cache directory
65-
id: composercache
66-
working-directory: _build
67-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
68-
69-
- name: Cache dependencies
70-
uses: actions/cache@v2
71-
with:
72-
path: ${{ steps.composercache.outputs.dir }}
73-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
74-
restore-keys: ${{ runner.os }}-composer-
75-
76-
- name: "Install dependencies"
77-
working-directory: _build
78-
run: composer install --prefer-dist --no-progress
79-
80-
- name: "Build the docs"
81-
working-directory: _build
82-
run: php build.php -vvv
50+
- name: Show log file
51+
if: ${{ always() }}
52+
run: cat _build/logs.txt || true
8353

8454
doctor-rst:
85-
name: DOCtor-RST
55+
name: Lint (DOCtor-RST)
8656

8757
runs-on: ubuntu-latest
8858

@@ -98,7 +68,7 @@ jobs:
9868
id: extract_base_branch
9969

10070
- name: "Cache DOCtor-RST"
101-
uses: actions/cache@v1
71+
uses: actions/cache@v2
10272
with:
10373
path: .cache
10474
key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }}
@@ -107,3 +77,68 @@ jobs:
10777
uses: docker://oskarstark/doctor-rst
10878
with:
10979
args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache
80+
81+
symfony-code-block-checker:
82+
name: Code Blocks
83+
runs-on: Ubuntu-20.04
84+
continue-on-error: true
85+
steps:
86+
- name: Checkout code
87+
uses: actions/checkout@v2
88+
with:
89+
path: 'docs'
90+
91+
- name: Set-up PHP
92+
uses: shivammathur/setup-php@v2
93+
with:
94+
php-version: 8.0
95+
coverage: none
96+
97+
- name: Fetch branch from where the PR started
98+
working-directory: docs
99+
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
100+
101+
- name: Find modified files
102+
id: find-files
103+
working-directory: docs
104+
run: echo "::set-output name=files::$(git diff --name-only origin/${{ github.base_ref }} HEAD | grep ".rst" | tr '\n' ' ')"
105+
106+
- name: Get composer cache directory
107+
id: composercache
108+
working-directory: docs/_build
109+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
110+
111+
- name: Cache dependencies
112+
if: ${{ steps.find-files.outputs.files }}
113+
uses: actions/cache@v2
114+
with:
115+
path: ${{ steps.composercache.outputs.dir }}
116+
key: ${{ runner.os }}-composer-codeBlocks-${{ hashFiles('_checker/composer.lock', '_sf_app/composer.lock') }}
117+
restore-keys: ${{ runner.os }}-composer-codeBlocks-
118+
119+
- name: Install dependencies
120+
if: ${{ steps.find-files.outputs.files }}
121+
run: composer create-project symfony-tools/code-block-checker _checker
122+
123+
- name: Install test application
124+
if: ${{ steps.find-files.outputs.files }}
125+
run: |
126+
git clone -b ${{ github.base_ref }} --depth 5 --single-branch https://github.com/symfony-tools/symfony-application.git _sf_app
127+
cd _sf_app
128+
composer update
129+
130+
- name: Generate baseline
131+
if: ${{ steps.find-files.outputs.files }}
132+
working-directory: docs
133+
run: |
134+
CURRENT=$(git rev-parse HEAD)
135+
git checkout -m ${{ github.base_ref }}
136+
../_checker/code-block-checker.php verify:docs `pwd` ${{ steps.find-files.outputs.files }} --generate-baseline=baseline.json --symfony-application=`realpath ../_sf_app`
137+
git checkout -m $CURRENT
138+
cat baseline.json
139+
140+
- name: Verify examples
141+
if: ${{ steps.find-files.outputs.files }}
142+
working-directory: docs
143+
run: |
144+
../_checker/code-block-checker.php verify:docs `pwd` ${{ steps.find-files.outputs.files }} --baseline=baseline.json --output-format=github --symfony-application=`realpath ../_sf_app`

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
/_build/doctrees
2-
/_build/spelling
3-
/_build/html
4-
/_build/logs.txt
51
/_build/vendor
62
/_build/output
7-
*.pyc

.symfony.cloud.yaml

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

.symfony/routes.yaml

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

.symfony/services.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dockerfile

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

0 commit comments

Comments
 (0)