diff --git a/docs/gallery_applications/applications.md b/docs/gallery_applications/applications.md
index 05103c4..b4fd255 100644
--- a/docs/gallery_applications/applications.md
+++ b/docs/gallery_applications/applications.md
@@ -18,4 +18,4 @@ There are many outstanding applications that make use of deal.II. This is just a
- [preCICE](https://www.precice.org)
- [PRISMS](http://www.prisms-center.org/#/ctools/software)
-Also see [Code Gallery](https://www.dealii.org/code-gallery.html) for smaller example programs using deal.II.
+Also see [Code Gallery](code_gallery.md) for smaller example programs using deal.II.
diff --git a/docs/gallery_applications/code_gallery.md b/docs/gallery_applications/code_gallery.md
new file mode 100644
index 0000000..b4d73b0
--- /dev/null
+++ b/docs/gallery_applications/code_gallery.md
@@ -0,0 +1,60 @@
+Code Gallery
+=============
+
+The deal.II "code gallery" is an extension to the deal.II tutorial.
+While the tutorial's emphasis is on teaching aspects of deal.II by providing concrete examples —
+and extensive documentation and discussion —
+of how parts of deal.II are used in applications,
+the intent of the code gallery is to *provide starting points* for your own codes
+by making available codes others have already written.
+
+As a general rule:
+
+* The code gallery is not part of deal.II.
+ The applications in the code gallery were written by users
+ who wanted to make their codes available
+* The applications in the code gallery are generally
+ not as well tested or documented as the tutorial programs.
+ **These codes come with no warranty at all**.
+ If you have questions, you need to contact the authors of these codes, not the authors of deal.II
+* **We welcome additions and improvements to existing codes,
+ as well as new code gallery applications!**
+ Most users start their own applications from an existing tutorial program.
+ Having more starting points helps others,
+ but it also gives code gallery authors additional ways to get recognition for their own codes!
+ See [the code gallery repository](https://github.com/dealii/code-gallery) for instructions on how to contribute.
+
+
+
+
+[:octicons-image-16: Codes](https://dealii.org/developer/doxygen/deal.II/CodeGallery.html){ .md-button .md-button--primary .center }
+See the list of programs that are part of the code gallery.
+{ .card }
+
+[:octicons-download-16: Download](#downloading-the-code-gallery){ .md-button .md-button--primary .center }
+Downloading the programs of the code gallery is easy.
+{ .card }
+
+[:fontawesome-solid-paper-plane: Contribute](https://github.com/dealii/code-gallery){ .md-button .md-button--primary .center }
+Contribute your own codes as a starting point for others.
+{ .card }
+
+
+
+
+
+Downloading the code gallery
+----------------------------
+
+You can get the entire code gallery from its GitHub home by using the command
+
+```
+git clone https://github.com/dealii/code-gallery.git
+```
+
+This creates a directory `code-gallery/` that contains all gallery programs.
+
+If you want to generate the deal.II documentation locally
+and want it also to cross-link to the code galery, you need to do the step above withing your copy of deal.II,
+i.e., so that the command above creates a directory `code-gallery/`
+parallel to the `include/`, `source/` and `/examples` (and other) directories.
\ No newline at end of file
diff --git a/docs/gallery_applications/index.md b/docs/gallery_applications/index.md
index ca38943..eac0aba 100644
--- a/docs/gallery_applications/index.md
+++ b/docs/gallery_applications/index.md
@@ -2,5 +2,5 @@ Gallery and Applications
========================
- [Images and Videos](gallery.md)
-- [Code Gallery](https://dealii.org/developer/doxygen/deal.II/CodeGallery.html) - examples programs using deal.II
+- [Code Gallery](code_gallery.md) - examples programs using deal.II
- Collection of [Applications using deal.II](applications.md)
diff --git a/mkdocs.yml b/mkdocs.yml
index b0589a2..bc9faa0 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -39,7 +39,7 @@ nav:
- Gallery & Applications:
- gallery_applications/index.md
- Image Gallery: gallery_applications/gallery.md
- - Code Gallery: https://dealii.org/developer/doxygen/deal.II/CodeGallery.html
+ - Code Gallery: gallery_applications/code_gallery.md
- gallery_applications/applications.md
markdown_extensions:
- attr_list