Skip to content

Commit 5ab6b74

Browse files
authored
Merge pull request #11984 from doctrine/2.20.x
Merge 2.20.x up into 3.3.x
2 parents 05c8c5f + 7155010 commit 5ab6b74

File tree

11 files changed

+55
-115
lines changed

11 files changed

+55
-115
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ on:
2424

2525
jobs:
2626
coding-standards:
27-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@7.2.2"
27+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@7.3.0"

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ on:
1717
jobs:
1818
documentation:
1919
name: "Documentation"
20-
uses: "doctrine/.github/.github/workflows/documentation.yml@7.2.2"
20+
uses: "doctrine/.github/.github/workflows/documentation.yml@7.3.0"

.github/workflows/release-on-milestone-closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release:
10-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@7.2.2"
10+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@7.3.0"
1111
secrets:
1212
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1313
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}

docs/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
composer.lock
2+
vendor/
3+
build/

docs/Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Makefile for Doctrine ORM documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
DOCOPTS =
6+
BUILD = vendor/bin/guides
7+
BUILDDIR = build
8+
9+
# Internal variables.
10+
ALLGUIDESOPTS = $(DOCOPTS) en/
11+
12+
.PHONY: help clean html
13+
14+
help:
15+
@echo "Please use \`make <target>' where <target> is one of"
16+
@echo " html to make standalone HTML files"
17+
18+
clean:
19+
-rm -rf ./$(BUILDDIR)/*
20+
21+
html:
22+
$(BUILD) $(ALLGUIDESOPTS) --output=$(BUILDDIR)/html
23+
@echo
24+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

docs/README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
# Doctrine ORM Documentation
22

3+
The documentation is written in [ReStructured Text](https://docutils.sourceforge.io/rst.html).
4+
35
## How to Generate:
4-
Using Ubuntu 14.04 LTS:
56

6-
1. Run ./bin/install-dependencies.sh
7-
2. Run ./bin/generate-docs.sh
7+
In the `docs/` folder, run
8+
9+
composer update
10+
11+
Then compile the documentation with:
812

9-
It will generate the documentation into the build directory of the checkout.
13+
make html
1014

15+
This will generate the documentation into the `build` subdirectory.
1116

12-
## Theme issues
17+
To browse the documentation, you need to run a webserver:
1318

14-
If you get a "Theme error", check if the `en/_theme` subdirectory is empty,
15-
in which case you will need to run:
19+
cd build/html
20+
php -S localhost:8000
1621

17-
1. git submodule init
18-
2. git submodule update
22+
Now the documentation is available at [http://localhost:8000](http://localhost:8000).

docs/bin/generate-docs.sh

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

docs/bin/install-dependencies.sh

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

docs/composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "doctrine/orm-docs",
3+
"description": "Documentation for the Object-Relational Mapper\"",
4+
"type": "library",
5+
"license": "MIT",
6+
"require": {
7+
"phpdocumentor/guides-cli": "1.7.1",
8+
"phpdocumentor/filesystem": "1.7.1"
9+
}
10+
}

docs/en/Makefile

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

0 commit comments

Comments
 (0)