Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Commit 57349d9

Browse files
authored
DevKit updates (#291)
1 parent a3d1e41 commit 57349d9

7 files changed

+33
-165
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
*.md export-ignore
77
tests export-ignore
88
docs export-ignore
9+
.readthedocs.yaml export-ignore
910
Makefile export-ignore
1011
phpunit.xml.dist export-ignore

.readthedocs.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
3+
sphinx:
4+
builder: dirhtml
5+
configuration: docs/conf.py
6+
7+
python:
8+
version: '3.7'
9+
install:
10+
- requirements: docs/requirements.txt

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ endif
8585
.PHONY: test
8686

8787
docs:
88-
cd docs && sphinx-build -W -b html -d _build/doctrees . _build/html
88+
cd docs && sphinx-build -W -b dirhtml -d _build/doctrees . _build/html
8989
.PHONY: docs

README.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Advanced article management
1616
[![Monthly Downloads](https://poser.pugx.org/sonata-project/article-bundle/d/monthly)](https://packagist.org/packages/sonata-project/article-bundle)
1717
[![Daily Downloads](https://poser.pugx.org/sonata-project/article-bundle/d/daily)](https://packagist.org/packages/sonata-project/article-bundle)
1818

19-
Branch | Github Actions | Code Coverage |
20-
------ | -------------- | ------------- |
21-
1.x | [![Test][test_stable_badge]][test_stable_link] | [![Coverage Status][coverage_stable_badge]][coverage_stable_link] |
22-
master | [![Test][test_unstable_badge]][test_unstable_link] | [![Coverage Status][coverage_unstable_badge]][coverage_unstable_link] |
19+
Branch | Github Actions | Code Coverage | Documentation |
20+
------ | -------------- | ------------- | ------------- |
21+
1.x | [![Test][test_stable_badge]][test_stable_link] | [![Coverage Status][coverage_stable_badge]][coverage_stable_link] | [![Documentation Status][documentation_stable_badge]][documentation_stable_link] |
22+
master | [![Test][test_unstable_badge]][test_unstable_link] | [![Coverage Status][coverage_unstable_badge]][coverage_unstable_link] | [![Documentation Status][documentation_unstable_badge]][documentation_unstable_link] |
2323

2424
## Documentation
2525

26-
Check out the documentation on the [official website](https://sonata-project.org/bundles/article).
26+
Check out the documentation on the [official website](https://docs.sonata-project.org/projects/SonataArticleBundle).
2727

2828
## Support
2929

@@ -45,3 +45,8 @@ This package is available under the [MIT license](LICENSE).
4545
[coverage_stable_link]: https://codecov.io/gh/sonata-project/SonataArticleBundle/branch/1.x
4646
[coverage_unstable_badge]: https://codecov.io/gh/sonata-project/SonataArticleBundle/branch/master/graph/badge.svg
4747
[coverage_unstable_link]: https://codecov.io/gh/sonata-project/SonataArticleBundle/branch/master
48+
49+
[documentation_stable_badge]: https://readthedocs.org/projects/sonataarticlebundle/badge/?version=1.x
50+
[documentation_stable_link]: https://docs.sonata-project.org/projects/SonataArticleBundle/en/1.x/?badge=1.x
51+
[documentation_unstable_badge]: https://readthedocs.org/projects/sonataarticlebundle/badge/?version=master
52+
[documentation_unstable_link]: https://docs.readthedocs.org/projects/SonataArticleBundle/en/master/?badge=master

docs/Makefile

-153
This file was deleted.

docs/conf.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
2929
# -- General configuration -----------------------------------------------------
3030

3131
# If your documentation needs a minimal Sphinx version, state it here.
32-
#needs_sphinx = '1.0'
32+
needs_sphinx = '1.8.5'
3333

3434
# Add any Sphinx extension module names here, as strings. They can be extensions
3535
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
36-
extensions = ['sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode']
36+
extensions = [
37+
'sensio.sphinx.codeblock', 'sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode'
38+
]
3739

3840
# Add any paths that contain templates here, relative to this directory.
3941
templates_path = ['_templates']
@@ -49,7 +51,7 @@
4951

5052
# General information about the project.
5153
project = u'SonataArticleBundle'
52-
copyright = u'2010-2020, Thomas Rabaix'
54+
copyright = u'2010-2021, Thomas Rabaix'
5355

5456
# The version info for the project you're documenting, acts as replacement for
5557
# |version| and |release|, also used in various other places throughout the
@@ -102,7 +104,9 @@
102104
# enable highlighting for PHP code not between ``<?php ... ?>`` by default
103105
lexers['php'] = PhpLexer(startinline=True)
104106
lexers['php-annotations'] = PhpLexer(startinline=True)
107+
lexers['php-attributes'] = PhpLexer(startinline=True)
105108
lexers['php-standalone'] = PhpLexer(startinline=True)
109+
lexers['php-symfony'] = PhpLexer(startinline=True)
106110

107111
# -- Options for HTML output ---------------------------------------------------
108112
import sphinx_rtd_theme

docs/requirements.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# It's auto-generated by sonata-project/dev-kit package.
44

5-
Sphinx==1.8.5
6-
git+https://github.com/fabpot/sphinx-php.git
7-
sphinx_rtd_theme
5+
Pygments==2.2.0
6+
sphinx==1.8.5
7+
git+https://github.com/fabpot/sphinx-php.git@v2.0.2#egg_name=sphinx-php
8+
sphinx_rtd_theme==0.5.2

0 commit comments

Comments
 (0)