Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit cbbb41d

Browse files
committed
Adds readme to mkdocs.yml, removes property from project.yml.
1 parent 8d47d16 commit cbbb41d

File tree

4 files changed

+38
-29
lines changed

4 files changed

+38
-29
lines changed

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pages:
4141
- Release process: 'readme/release-process.md'
4242
- Release notes: 'scripts/release-notes/README.md'
4343
- Setting up continuous integration: 'readme/ci.md'
44+
- Setting up SSO with SimpleSAMLphp: 'readme/simplesamlphp-setup.md'
4445
- Open source contribution: 'readme/os-contribution.md'
4546
- Troubleshooting & Support: 'readme/support.md'
4647
- Extending / Overriding BLT: 'readme/extending-blt.md'

phing/tasks/deploy.xml

+6-4
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@
8484
<phingcall target="target-hook:invoke">
8585
<property name="hook-name" value="post-deploy-build"/>
8686
</phingcall>
87+
88+
<available property="simplesamlphp" file="${blt.root}/settings/simplesamlphp.settings.php"/>
8789
<if>
88-
<isset property="simplesamlphp"/>
89-
<then>
90-
<phingcall target="simplesamlphp:deploy:config"/>
91-
</then>
90+
<istrue value="${simplesamlphp}"/>
91+
<then>
92+
<phingcall target="simplesamlphp:deploy:config"/>
93+
</then>
9294
</if>
9395
</target>
9496

phing/tasks/setup.xml

+5-4
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@
6262
<target name="setup:build" description="Generates all required files for a full build. E.g., (re)builds docroot, etc."
6363
depends="setup:git-hooks, setup:drupal:settings, setup:behat, setup:composer:install, frontend">
6464

65+
<available property="simplesamlphp" file="${blt.root}/settings/simplesamlphp.settings.php"/>
6566
<if>
66-
<isset property="simplesamlphp"/>
67-
<then>
68-
<phingcall target="simplesamlphp:build:config"/>
69-
</then>
67+
<istrue value="${simplesamlphp}"/>
68+
<then>
69+
<phingcall target="simplesamlphp:build:config"/>
70+
</then>
7071
</if>
7172

7273
<phingcall target="target-hook:invoke">

phing/tasks/simplesamlphp.xml

+26-21
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,40 @@
33
<target name="simplesamlphp:init" description="Initializes SimpleSAMLphp for project.">
44

55
<!-- Adds simplesamlphp_auth as a dependency. -->
6-
<phingcall target="simplesamlphp:lib:init"/>
7-
8-
<!-- Copies the configuration templates from the library to a simplesamlphp directory located in the project root. -->
9-
<phingcall target="simplesamlphp:config:init"/>
10-
11-
<!-- Sets a property in project.yml to let other targets know simplesamlphp is installed -->
12-
<echo>Updating project.yml.</echo>
13-
<exec dir="${repo.root}" command="drupal yaml:update:value project.yml simplesamlphp true" logoutput="true" checkreturn="true" passthru="true" level="info"/>
14-
15-
<!-- Copies a settings file used by the simplesamlphp_auth module to site's settings dir. -->
16-
<phingcall target="simplesamlphp:settings"/>
17-
18-
<!-- Creates a symlink from the docroot to the web accessible library dir. -->
19-
<echo>Creating a symbolic link from ${docroot}/simplesaml to web accessible directory in the simplesamlphp library</echo>
20-
<symlink target="../vendor/simplesamlphp/simplesamlphp/www/" link="${docroot}/simplesaml" overwrite="true" />
21-
22-
<!-- Outputs a message to edit the new config files. -->
23-
<phingcall target="simplesamlphp:init:complete"/>
24-
6+
<available property="simplesamlphp" file="${blt.root}/settings/simplesamlphp.settings.php"/>
7+
8+
<if>
9+
<isfalse value="${simplesamlphp}"/>
10+
<then>
11+
<phingcall target="simplesamlphp:lib:init"/>
12+
13+
<!-- Copies the configuration templates from the library to a simplesamlphp directory located in the project root. -->
14+
<phingcall target="simplesamlphp:config:init"/>
15+
16+
<!-- Copies a settings file used by the simplesamlphp_auth module to blt's settings dir. -->
17+
<phingcall target="simplesamlphp:settings"/>
18+
19+
<!-- Creates a symlink from the docroot to the web accessible library dir. -->
20+
<echo>Creating a symbolic link from ${docroot}/simplesaml to web accessible directory in the simplesamlphp library</echo>
21+
<symlink target="../vendor/simplesamlphp/simplesamlphp/www/" link="${docroot}/simplesaml" overwrite="true" />
22+
23+
<!-- Outputs a message to edit the new config files. -->
24+
<phingcall target="simplesamlphp:init:complete"/>
25+
</then>
26+
<else>
27+
<echo>SimpleSAMLphp has already been initialized by BLT.</echo>
28+
</else>
29+
</if>
2530
</target>
2631

2732
<!-- Adds simplesamlphp_auth as a dependency. -->
28-
<target name="simplesamlphp:lib:init" unless="simplesamlphp" hidden="true">
33+
<target name="simplesamlphp:lib:init" hidden="true">
2934
<echo>Adding SimpleSAMLphp Auth module as a dependency.</echo>
3035
<exec dir="${repo.root}" command="composer require drupal/simplesamlphp_auth:8.3.x-dev#283994f" logoutput="true" checkreturn="true" passthru="true" level="info"/>
3136
</target>
3237

3338
<!-- Copies the configuration templates from the library to a simplesamlphp directory located in the project root. -->
34-
<target name="simplesamlphp:config:init" unless="simplesamlphp" hidden="true">
39+
<target name="simplesamlphp:config:init" hidden="true">
3540
<echo>Copying config files to ${repo.root}/simplesamlphp/config.</echo>
3641
<copy todir="${repo.root}/simplesamlphp/config" overwrite="false">
3742
<filelist dir="${repo.root}/vendor/simplesamlphp/simplesamlphp/config-templates" files="authsources.php, config.php"/>

0 commit comments

Comments
 (0)