-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable generating into an empty directory (once we remove the files f…
…rom git). Using template for config_reference.
- Loading branch information
1 parent
3a2e507
commit f034842
Showing
4 changed files
with
193 additions
and
52 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
config/metadata/docs/src/main/java/io/helidon/config/metadata/docs/CmReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (c) 2024 Oracle and/or its affiliates. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.helidon.config.metadata.docs; | ||
|
||
/** | ||
* Type required for template processing for config reference. | ||
*/ | ||
public class CmReference { | ||
private final String file; | ||
private final String title; | ||
|
||
CmReference(String file, String title) { | ||
this.file = file; | ||
this.title = title; | ||
} | ||
|
||
/** | ||
* File name that was generated. | ||
* | ||
* @return file name | ||
*/ | ||
public String file() { | ||
return file; | ||
} | ||
|
||
/** | ||
* Title of the file. | ||
* | ||
* @return title | ||
*/ | ||
public String title() { | ||
return title; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...etadata/docs/src/main/resources/io/helidon/config/metadata/docs/config_reference.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{! | ||
Copyright (c) 2024 Oracle and/or its affiliates. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
}}/////////////////////////////////////////////////////////////////////////////// | ||
|
||
Copyright (c) {{year}} Oracle and/or its affiliates. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
ifndef::rootdir[:rootdir: {docdir}/..] | ||
:description: Configuration Reference | ||
:keywords: helidon, config, reference | ||
|
||
= Configuration Reference | ||
|
||
The following section lists all configurable types in Helidon. | ||
|
||
{{#each data}}- xref:{rootdir}/config/{{this.file}}[{{this.title}}] | ||
{{/each}} |