Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@dimerapp/docs-theme
Advanced tools
The docs theme provides ready to use Edge templates, CSS and frontend JavaScript to create a documentation layout. This package must be used with @dimerapp/content package.
Install the package from npm packages registry.
npm i @dimerapp/docs-theme
Register the docsTheme
with the edge template engine. The docsTheme
plugin registers a set of templates under the docs
namespace.
Some of the templates relies on the edge-uikit
. So make sure to also and configure the edge-uikit
.
import { Edge } from 'edge.js'
import uiKit from 'edge-uikit'
import { docsTheme } from '@dimerapp/docs-theme'
const edge = new Edge()
edge.use(uiKit)
edge.use(docsTheme)
Once done, you use the following components to render the docs header, sidebar, table of contents and the main content.
@component('docs::header', config)
@slot('logo')
AdonisJS
@end
@slot('logoMobile')
AdonisJS - Mobile logo
@end
@end
<section>
@!component('docs::sidebar', {
collapsible: true,
sections: sidebarSections
})
<main layout-main>
@component('docs::content')
@!component('docs::doc_errors', { messages: file.messages })
@!component('dimer_contents', { nodes: file.ast.children, pipeline })~
@end
@if(file.toc)
@component('docs::toc')
@!component('dimer_element', { node: file.toc, pipeline })~
@end
@end
</main>
</section>
You may import the styles and scripts as follows.
@import '@dimerapp/docs-theme/styles';
import docsearch from '@docsearch/js'
import { initAlpinePlugins, initSearch } from '@dimerapp/docs-theme/scripts'
Alpine.plugin(initAlpinePlugins)
Alpine.plugin(initSearch(docsearch))
FAQs
Documentation theme built on top of Dimer and used by AdonisJS
The npm package @dimerapp/docs-theme receives a total of 35 weekly downloads. As such, @dimerapp/docs-theme popularity was classified as not popular.
We found that @dimerapp/docs-theme demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.