Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom footer to docs #36

Merged
merged 5 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.idea
.vscode

docs/_site
docs/Gemfile
docs/Gemfile.lock

tests/bats
tests/test_helper
14 changes: 0 additions & 14 deletions commands/doxygen/dkan-docs

This file was deleted.

5 changes: 5 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ header_pages:
titles_from_headings:
enabled: true
strip_title: true
github_username: GetDKAN/ddev-dkan
minima:
social_links:
- { platform: github, user_url: "https://github.com/getdkan/ddev-dkan" }
plugins:
- jekyll-seo-tag
sass:
quiet_deps: true
2 changes: 2 additions & 0 deletions docs/_includes/custom-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<link rel="icon" href="{{ '/favicon.ico' | relative_url }}" type="image/x-icon">
<link rel="shortcut icon" href="{{ '/favicon.png' | relative_url }}" type="image/png">
12 changes: 12 additions & 0 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<footer class="site-footer h-card">
<data class="u-url" href="{{ "/" | relative_url }}"></data>

<div class="wrapper">

<div class="social-links">
{%- include social.html -%}
</div>

</div>

</footer>
14 changes: 14 additions & 0 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{%- seo -%}
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
{%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}

{%- include custom-head.html -%}

</head>
1 change: 1 addition & 0 deletions docs/_includes/social-icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 4 additions & 10 deletions docs/demo.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# Run The DKAN Demo Site
# Build a DKAN demo site

Note: As of DDEV 1.19.5, these instructions require managing the settings.php
file. After DDEV 1.19.6 is released, this will (hopefully) not be required.
The following commands will create a Drupal site with DKAN enabled and a sample react frontend for you to test out.

mkdir my-project && cd my-project
ddev config --auto
ddev get getdkan/dkan-ddev-addon
ddev get https://github.com/GetDKAN/ddev-dkan/archive/refs/heads/main.tar.gz
ddev restart
ddev composer create getdkan/recommended-project:@dev -y
# At this point, we must add a configuration to settings.php
# This should change after DDev 1.19.6 is released.
cat .ddev/misc/settings.dkan-snippet.php.txt >> docroot/sites/default/settings.php
cp .ddev/misc/settings.dkan.php docroot/sites/default/settings.dkan.php

ddev dkan-demo
ddev launch
Binary file added docs/favicon.ico
Binary file not shown.
Binary file added docs/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Grab the DKAN addon to get helpful DKAN commands.
Note that eventually we'll be 'official' and you won't have
to install this from a tarball.

ddev get https://github.com/GetDKAN/dkan-ddev-addon/archive/refs/heads/main.tar.gz
ddev get https://github.com/GetDKAN/ddev-dkan/archive/refs/heads/main.tar.gz

Make sure we're using the addon.

Expand Down Expand Up @@ -93,7 +93,3 @@ of DDEV.
Run `ddev` by itself to get a list of commands available to you.

Run `ddev get --list --all` to get a list of other DDEV add-ons.
## Additional Resources

- [DDEV Documentation](https://ddev.readthedocs.io/en/stable/users/usage/)
- [DKAN Documentation](https://demo.getdkan.org/modules/contrib/dkan/docs/index.html)
8 changes: 5 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ title: "DDEV-DKAN add-on"
The DDEV-DKAN add-on provides configuration and specialized commands for dealing
with a DKAN Drupal project in the DDEV environment.

- [DDEV Documentation](https://ddev.readthedocs.io/en/stable/users/usage/)
- [DKAN Documentation](https://dkan.readthedocs.io/en/latest/index.html)

Note that all the DKAN commands which come with this addon have documentation built-in. At the command line, you can
ask for help with any one of them with `ddev [command] --help` like this:

Expand All @@ -24,9 +27,8 @@ ask for help with any one of them with `ddev [command] --help` like this:
## Sections:

- [Getting started](getting-started.md)
- [Create a demo DKAN site](demo.md)
- [Build a DKAN demo site](demo.md)
- [Convert a DKAN-Tools project to DDEV](dktl-convert.md)
- [Testing the DKAN module](testing-dkan.md)
- [Debugging PHPUnit tests in DDev](testing-debug-phpunit.md)
- [Debugging PHPUnit tests in DDEV](testing-debug-phpunit.md)
- [Testing your local development project](testing-project.md)
- [Generate DKAN Documentation](docs.md)
1 change: 0 additions & 1 deletion install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pre_install_actions:
project_files:
- config.dkan.yaml
- commands/cypress/cypress
- commands/doxygen/dkan-docs
- commands/host/dkan-demo
- commands/host/dkan-frontend-test-cypress
- commands/host/dkan-init
Expand Down
2 changes: 1 addition & 1 deletion misc/settings.dkan-snippet.php.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Automatically generated include for settings managed by dkan-ddev-addon.
// Automatically generated include for settings managed by ddev-dkan.
// #ddev-generated
if (file_exists(__DIR__ . '/settings.dkan.php') && getenv('IS_DDEV_PROJECT') == 'true') {
include __DIR__ . '/settings.dkan.php';
Expand Down
2 changes: 1 addition & 1 deletion misc/settings.dkan.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @file
* #ddev-generated: Automatically generated Drupal settings file.
* DKAN-DDev-addon manages this file and may delete or overwrite the file unless this
* ddev-dkan manages this file and may delete or overwrite the file unless this
* comment is removed. It is recommended that you leave this file alone.
*/

Expand Down