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

GEODE-8713: user guide API reference links - fix redirects for Geode website #709

Merged
merged 1 commit into from Dec 10, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/geode-native-book-cpp/redirects.rb
Expand Up @@ -15,9 +15,12 @@

# Links to API Documentation #
r301 %r{/releases/latest/javadoc/(.*)}, 'https://geode.apache.org/releases/latest/javadoc/$1'
r302 %r{/apidocs/(.*)}, 'https://geode.apache.org/releases/latest/cppdocs/$1'
r302 %r{/cppdocs/(.*)}, 'https://geode.apache.org/releases/latest/cppdocs/$1'
r302 %r{/dotnetdocs/(.*)}, 'https://geode.apache.org/releases/latest/dotnetdocs/$1'
# preferred API redirects 12/8/2020
r302 %r{/cppapiref/(.*)}, 'https://geode.apache.org/releases/latest/cppdocs/$1'
r302 %r{/dotnetapiref/(.*)}, 'https://geode.apache.org/releases/latest/dotnetdocs/$1'
# old redirects (/cppdocs, /dotnetdocs) deprecated due to recursion in geode .htaccess (delete when no longer needed)
#r302 %r{/cppdocs/(.*)}, 'https://geode.apache.org/releases/latest/cppdocs/$1'
#r302 %r{/dotnetdocs/(.*)}, 'https://geode.apache.org/releases/latest/dotnetdocs/$1'

# Links to User Guides #
rewrite '/', '/docs/geode-native/cpp/113/about-client-users-guide.html'
Expand Down
9 changes: 6 additions & 3 deletions docs/geode-native-book-dotnet/redirects.rb
Expand Up @@ -15,9 +15,12 @@

# Links to API Documentation #
r301 %r{/releases/latest/javadoc/(.*)}, 'https://geode.apache.org/releases/latest/javadoc/$1'
r302 %r{/apidocs/(.*)}, 'https://geode.apache.org/releases/latest/dotnetdocs/$1'
r302 %r{/dotnetdocs/(.*)}, 'https://geode.apache.org/releases/latest/dotnetdocs/$1'
r302 %r{/cppdocs/(.*)}, 'https://geode.apache.org/releases/latest/cppdocs/$1'
# preferred API redirects 12/8/2020
r302 %r{/cppapiref/(.*)}, 'https://geode.apache.org/releases/latest/cppdocs/$1'
r302 %r{/dotnetapiref/(.*)}, 'https://geode.apache.org/releases/latest/dotnetdocs/$1'
# old redirects (/cppdocs, /dotnetdocs) deprecated due to recursion in geode .htaccess (delete when no longer needed)
#r302 %r{/cppdocs/(.*)}, 'https://geode.apache.org/releases/latest/cppdocs/$1'
#r302 %r{/dotnetdocs/(.*)}, 'https://geode.apache.org/releases/latest/dotnetdocs/$1'

# Links to User Guides #
rewrite '/', '/docs/geode-native/dotnet/113/about-client-users-guide.html'
Expand Down
Expand Up @@ -25,8 +25,8 @@ The Apache Geode Native Client is a library that provides access for C++ and Mic

See the API docs for API details:

- [C++ API docs](https://geode.apache.org/releases/latest/cppdocs/index.html)
- [.NET API docs](https://geode.apache.org/releases/latest/dotnetdocs/index.html)
- [C++ API docs](/cppapiref/index.html)
- [.NET API docs](/dotnetapiref/index.html)

See the [_<%=vars.product_name_long%> User Guide_](serverman/about_<%=vars.product_name.downcase%>.html) for information regarding the server.

10 changes: 5 additions & 5 deletions docs/geode-native-docs-cpp/client-cache-ref.html.md.erb
Expand Up @@ -357,7 +357,7 @@ Use the `<expiration-attributes>` sub-element to specify duration and expiration

A partition resolver is used for single-hop access to partitioned region entries on the server side. This resolver
implementation must match that of the `PartitionResolver` on the server side.
See the [API Class Reference](/apidocs/hierarchy.html) for the **PartitionResolver** class.
See the [API Class Reference](/cppapiref/hierarchy.html) for the **PartitionResolver** class.

For example:

Expand All @@ -370,26 +370,26 @@ For example:
## \<cache-loader\>

\<cache-loader\> identifies a cache loader function by specifying `library-name` and `library-function-name`.
See the [API Class Reference](/apidocs/hierarchy.html) for the **CacheLoader** class.
See the [API Class Reference](/cppapiref/hierarchy.html) for the **CacheLoader** class.

<a id="cache-listener-ref"></a>
## \<cache-listener\>

\<cache-listener\> identifies a cache listener function by specifying `library-name` and `library-function-name`.
See the [API Class Reference](/apidocs/hierarchy.html) for the **CacheListener** class.
See the [API Class Reference](/cppapiref/hierarchy.html) for the **CacheListener** class.

<a id="cache-writer-ref"></a>
## \<cache-writer\>

\<cache-writer\> identifies a cache writer function by specifying `library-name` and `library-function-name`.
See the [API Class Reference](/apidocs/hierarchy.html) for the **CacheWriter** class.
See the [API Class Reference](/cppapiref/hierarchy.html) for the **CacheWriter** class.

<a id="persistence-manager-ref"></a>
## \<persistence-manager\>

For each region, if the disk-policy attribute is set to `overflows`, a persistence-manager plug-in
must perform cache-to-disk and disk-to-cache operations.
See the [API Class Reference](/apidocs/hierarchy.html) for the **PersistenceManager** class.
See the [API Class Reference](/cppapiref/hierarchy.html) for the **PersistenceManager** class.

\<persistence-manager\> identifies a persistence manager function by specifying `library-name` and `library-function-name`.
You can also specify a set of properties to be passed to the function as parameters.
Expand Down
Expand Up @@ -25,8 +25,8 @@ The Apache Geode Native Client is a library that provides access for C++ and Mic

See the API docs for API details:

- [C++ API docs](https://geode.apache.org/releases/latest/cppdocs/index.html)
- [.NET API docs](https://geode.apache.org/releases/latest/dotnetdocs/index.html)
- [C++ API docs](/cppapiref/index.html)
- [.NET API docs](/dotnetapiref/index.html)

See the [_<%=vars.product_name_long%> User Guide_](serverman/about_<%=vars.product_name.downcase%>.html) for information regarding the server.

10 changes: 5 additions & 5 deletions docs/geode-native-docs-dotnet/client-cache-ref.html.md.erb
Expand Up @@ -357,7 +357,7 @@ Use the `<expiration-attributes>` sub-element to specify duration and expiration

A partition resolver is used for single-hop access to partitioned region entries on the server side. This resolver
implementation must match that of the `PartitionResolver` on the server side.
See the [API Class Reference](/apidocs/hierarchy.html) for the **PartitionResolver** class.
See the [API Class Reference](/dotnetapiref/hierarchy.html) for the **PartitionResolver** class.

For example:

Expand All @@ -370,26 +370,26 @@ For example:
## \<cache-loader\>

\<cache-loader\> identifies a cache loader function by specifying `library-name` and `library-function-name`.
See the [API Class Reference](/apidocs/hierarchy.html) for the **CacheLoader** class.
See the [API Class Reference](/dotnetapiref/hierarchy.html) for the **CacheLoader** class.

<a id="cache-listener-ref"></a>
## \<cache-listener\>

\<cache-listener\> identifies a cache listener function by specifying `library-name` and `library-function-name`.
See the [API Class Reference](/apidocs/hierarchy.html) for the **CacheListener** class.
See the [API Class Reference](/dotnetapiref/hierarchy.html) for the **CacheListener** class.

<a id="cache-writer-ref"></a>
## \<cache-writer\>

\<cache-writer\> identifies a cache writer function by specifying `library-name` and `library-function-name`.
See the [API Class Reference](/apidocs/hierarchy.html) for the **CacheWriter** class.
See the [API Class Reference](/dotnetapiref/hierarchy.html) for the **CacheWriter** class.

<a id="persistence-manager-ref"></a>
## \<persistence-manager\>

For each region, if the disk-policy attribute is set to `overflows`, a persistence-manager plug-in
must perform cache-to-disk and disk-to-cache operations.
See the [API Class Reference](/apidocs/hierarchy.html) for the **PersistenceManager** class.
See the [API Class Reference](/dotnetapiref/hierarchy.html) for the **PersistenceManager** class.

\<persistence-manager\> identifies a persistence manager function by specifying `library-name` and `library-function-name`.
You can also specify a set of properties to be passed to the function as parameters.
Expand Down