@cjbrooks12
I'm having this error in admin:
Error loading the CMS configuration
Config Errors:
'collections[0].files[0].fields[2].types[2].fields' fields names must be unique
'collections[0].files[0].fields[2].types[6].fields[3].fields' should NOT have fewer than 1 items
...
Check your config.yml file.
my orchid version is : 0.16.10
Good morning! Just wanted to ask since I'm unsure based on the docs.
I'm currently developing a command handling framework, and working on making a small documentation generator, hopefully with results comparble to Spring REST Docs.
Is Orchid a suitable solution for this, if I wanted to export all commands as files with Asciidoctor, and then have Orchid generate the static website?
apply plugin: "com.android.library"
or apply plugin: "com.android.application"
in it). This has always been the case as the Android Gradle plugins do not use the Java plugin toolchain. For Android projects, you'll have to move it to another subproject like :docs
and update the paths to the java/kotlin sources to the main project directory, which is the best practice anyway. You can see an example of this in all the repos I maintain and use Orchid in, such as copper-leaf/clog or orchidhq/Orchid itself.
I have added the following rows to a typescript file:
// snippet::snippet-init-createviewer
createMethod() {
console.log("I create something");
}
// end::snippet-init-createviewer
And I have added the following config to config.yml:
snippets:
sections:
- tags: ['embedded_snippets']
adapter:
type: 'embedded'
baseDirs: ['./../../../../minimal-viable-product/src']
recursive: true
But I can not get anything to be seen in the list in /admin/snippets.
I have tried both absolute and every possible combination of relative paths for baseDirs.
Is there something else I need to do as well to catch my little code-snippet?
The docs and the code is in two different modules.
config.yml
file. You can test you have the right path by cd
-ing to the directory with your config.yml
file, and do ls ./../../../../minimal-viable-product/src
and see if it lists the files/folder you're expecting (and adjusting the relative pathing if necessary until it does)
Hi there,
I'd like to use orchid to document my Kotlin/JS library. When I try to add the orchid plugin to my gradle build file I get errors.
I think this drills down to https://github.com/orchidhq/Orchid/blob/dev/buildSrc/orchidPlugin/src/main/groovy/com/eden/orchid/gradle/OrchidPlugin.groovy#L13 which expects a Java project. Since I'm using Kotlin/JS this won't work.
Do you see any chance to relax this restriction or have an idea how to use orchid w/ a Kotlin/JS lib?
:experimental
features (specifically kbd:[foo]
which doesn't seem to be picked up by asciidoc when run by Orchid).
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
Hello, I have a problem with Orchid build/run
Gradle version: 3.5
-NETLIFY: false
-PULL_REQUEST: false
-adminTheme: Default
-baseUrl: true
-defaultTemplateExtension: peb
-dest: C:\Users\username\Documents\MES\build\docs\orchid
-diagnose: false
-dryDeploy: false
-environment: debug
-experimentalSourceDoc: false
-legacyFileServer: false
-legacySourceDoc: false
-logLevel: VERBOSE
-port: 8080
-src: C:\Users\username\Documents\MES\src\orchid\resources
-task: build
-theme: Default
-version: 1.5.1
[INFO] Orchid: Running Orchid version 0.21.1, site version 1.5.1 in debug environment
java.lang.NullPointerException
at com.eden.orchid.api.options.OptionsHolder.extractOptions(OptionsHolder.java:12)
at com.eden.orchid.api.OrchidContextImpl.lambda$extractServiceOptions$1(OrchidContextImpl.java:124)
at java.util.HashMap$Values.forEach(HashMap.java:981)
at com.eden.orchid.api.OrchidContextImpl.extractServiceOptions(OrchidContextImpl.java:123)
at com.eden.orchid.api.tasks.TaskServiceImpl.initOptions(TaskServiceImpl.java:65)
at com.eden.orchid.api.tasks.TaskServiceImpl.build(TaskServiceImpl.java:121)
at com.eden.orchid.api.tasks.TaskService.build(TaskService.java:26)
at com.eden.orchid.impl.tasks.BuildTask.run(BuildTask.kt:12)
at com.eden.orchid.api.tasks.TaskServiceImpl.runTask(TaskServiceImpl.java:79)
at com.eden.orchid.api.tasks.TaskServiceImpl.onPostStart(TaskServiceImpl.java:70)
at java.util.HashMap$Values.forEach(HashMap.java:981)
at com.eden.orchid.api.OrchidContextImpl.start(OrchidContextImpl.java:100)
at com.eden.orchid.Orchid.start(Orchid.java:96)
at com.eden.orchid.Orchid.start(Orchid.java:62)
at com.eden.orchid.Orchid.internalMain(Orchid.java:54)
at com.eden.orchid.Orchid.main(Orchid.java:45)
[ERROR] Errors:
[ERROR] Orchid:
[ERROR] - Something went wrong running Orchid
Thanks in advance for any help!