Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 52addfb

Browse files
committed
minor docs fixes
1 parent f401525 commit 52addfb

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

docs/configurations/webservers-nginx.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ If you are using Ubuntu as your base OS and you want to get started quickly with
4040
ssl_ciphers HIGH:!aNULL:!MD5;
4141
```
4242
43-
### Customizing server block configuration
43+
## Customizing server block configuration
4444
4545
If you can't customize via variables because an option isn't exposed, you can override the template used to generate the the virtualhost configuration file.
4646
4747
```yaml
4848
nginx_vhost_template: "{{ config_dir }}/templates/nginx-vhost.conf.j2"
4949
```
5050
51-
You can either copy and modify the provided `nginx-vhost.conf.j2` template, or extend it and and override the specific template block you need to change.
51+
You can either copy and modify the provided `nginx-vhost.conf.j2` template, or extend it and override the specific template block you need to change.
5252

53-
_If you extend Drupal VM's provided base template, the path referenced should to be relative to the playbook.yml._
53+
_If you extend Drupal VM's provided base template, the path referenced should to be relative to playbook.yml._
5454

5555
```
5656
{% extends 'templates/nginx-vhost.conf.j2' %}

docs/extras/drush.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If you want to customize the generated alias file you can override the `drush_al
4141
drush_aliases_host_template: "{{ config_dir }}/templates/drupalvm.aliases.drushrc.php.j2"
4242
```
4343
44-
Eg. to only print the alias for your main domain, and not the subdomain you can override the file using a child template.
44+
Eg. to only print the alias for your main domain, and not the subdomain you can override the file using a [Jinja2 child template](http://jinja.pocoo.org/docs/2.9/templates/#child-template).
4545
4646
```php
4747
{% extends 'templates/drupalvm.aliases.drushrc.php.j2' %}

docs/extras/varnish.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ $settings['reverse_proxy_addresses'] = array('127.0.0.1');
3131

3232
If you don't set these values, Drupal will think all requests are coming from `127.0.0.1`. There are other settings you can change to make Drupal not store copies of cached pages in the Database (since Varnish is caching everything, this is redundant), but those other settings are not covered here.
3333

34-
### Extending the base `drupalvm.vcl.j2` template
34+
## Extending the base `drupalvm.vcl.j2` template
3535

36-
If you can't customize via variables because an option isn't exposed, you can extend the base `drupalvm.vcl.j2` through Jinja2 template inheritance.
36+
If you can't customize via variables because an option isn't exposed, you can extend the base `drupalvm.vcl.j2` through [Jinja2 template inheritance](http://jinja.pocoo.org/docs/2.9/templates/#template-inheritance).
3737

3838
```yaml
3939
varnish_default_vcl_template_path: "{{ config_dir }}/templates/drupalvm.vcl.j2"
4040
```
4141

42-
_If you extend Drupal VM's provided base template, the path referenced should to be relative to the playbook.yml._
42+
Either copy the `drupalvm.vcl.j2` and modify it to your liking, or extend it and override the blocks you need to adjust.
43+
44+
_If you extend Drupal VM's provided base template, the path referenced should to be relative to playbook.yml._
4345

4446
```
4547
{% extends 'templates/drupalvm.vcl.j2' %}
@@ -57,6 +59,6 @@ unset resp.http.Purge-Cache-Tags;
5759
{% endblock %}
5860
```
5961
60-
The `{{ super() }}` Jinja2 function returns the original block content from the base template.
62+
The [`{{ super() }}` Jinja2 function](http://jinja.pocoo.org/docs/2.9/templates/#super-blocks) returns the original block content from the base template.
6163
6264
For a list of available role variables, see the [`geerlingguy.varnish` Ansible role's README](https://github.com/geerlingguy/ansible-role-varnish#readme).

0 commit comments

Comments
 (0)