Skip to content

Conversation

@SvetlanaMuravlova
Copy link
Contributor

@SvetlanaMuravlova SvetlanaMuravlova commented Jun 8, 2022

feat(asciidoctor): added adoc blogs
Fixed routes according routes from old site

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2022

Visit the preview URL for this PR (updated for commit ddd4b01):

https://valor-software-site--pr75-ascodoctor-blog-xplc962f.web.app

(expires Sun, 26 Jun 2022 08:10:39 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@SvetlanaMuravlova SvetlanaMuravlova changed the title Ascodoctor blog feat(asciidoctor): added adoc blogs Jun 8, 2022

(async () => {
fs.readdir(articlesFolderPath, { withFileTypes: true }).then(async files => {
const list = files.map(async folder => {
Copy link
Member

@valorkin valorkin Jun 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.filter() // filter article/{folder}
.map() // map article/{folder} -> readdir
// we expect 2 files: one .adoc and one.json
// build and convert to app/assets

const articlesFolderPath = path.resolve(process.cwd(), 'apps/valor-software-site/src/assets/articles');

(async () => {
fs.readdir(articlesFolderPath, { withFileTypes: true }).then(async files => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let ... await

@valorkin valorkin merged commit 8dcacb8 into development Jun 24, 2022
@valorkin valorkin deleted the ascodoctor-blog branch June 24, 2022 08:50
@KseniaKoniayeva KseniaKoniayeva linked an issue Jul 4, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert articles into adoc extension

2 participants