Comments (5)
I think you can do it with this: https://mdxjs.com/getting-started#documents
So something like this:
import Changelog from '../CHANGELOG.md`
<Changelog />
from dnp3.
It didn't like the following raw markdown:
### 0.9.0 ###
* :tada: first official release
result:
from dnp3.
This is caused because the CHANGELOG.md
file is not inside the /guide
directory, so outside the docusaurus project. I tried writing a plugin for docusaurus with the following content, but it doesn't work (it tries to resolve configuration files that do not exist) and I gave up on it.
module.exports = function(ctx, options) {
return {
name: 'webpack-config',
configureWebpack(config, isServer, utils) {
var mdxConfig = config.module.rules[config.module.rules.length - 1];
console.log(mdxConfig);
return {
module: {
rules: [
{
test: /(CHANGELOG.md)$/,
include: ['D:\\Desktop\\stepfunc\\dnp3'],
use: ['babel-loader', '@docusaurus/mdx-loader', '@docusaurus/plugin-content-pages/lib/markdownLoader'],
}
]
}
}
}
};
}
The remaining solutions would be to create a symlink inside the /guide
directory, but I'm not sure how git is going to handle it. Or, we could just link to the changelog on GitHub.
from dnp3.
I think linking to the changelog will be fine, so long as we can use a global version constant from the configuration to generate the link.
from dnp3.
I got it working in 1dec86b It copies the CHANGELOG.md
to the appropriate directory so we can import it inline. Also, I added in 7aa3508 a JSON to contain the current version number (and other global information in the future) that we can reference from the docs. See https://github.com/stepfunc/dnp3/blob/1dec86b18a8ed2372b4e49f30f0d6ae8e5cacc0e/guide/docs/about/versioning.mdx for an example.
from dnp3.
Related Issues (20)
- Binding multiple master sessions with different local addr to a single channel HOT 1
- CPU spikes when polls time out (with link status enabled) HOT 6
- Make TaskError variants (pub) crate
- Use builder pattern for config structures
- Add support for retrieving the bound port when creating a TCP or TLS server
- Can't compile the .c files in bindings/c directory while using RPi4 HOT 9
- Class 0 scan and Group 50 Var 4 question HOT 3
- support for g50v4 HOT 3
- support for partial responses HOT 3
- v1.5.0 not on crates.io? HOT 1
- Add cargo publish to CI release process
- dnp3 nugget ( Axon outstation with dnp3 master) HOT 1
- Native libraries fail to load when `java.io.tmpdir` is relative HOT 10
- Fatal error. System.AccessViolationException: dnp3.PInvoke.MasterChannelAddAssociation (Causing Application crash.) HOT 15
- Add support for writing files from master to outstation HOT 1
- Add UDP support HOT 1
- unsolicited only seems to send one fragment HOT 4
- Attemped to read or write protected memory HOT 1
- Cargo build error HOT 2
- output file versions don't match package version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnp3.