Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing auto last-updated feature #579

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sboldyreva
Copy link
Contributor

Automating last-updated info that pulls data from git.
The timestamp format is Last Updated: 30 January 2025 to avoid any confusion in DD/MM/YYYY, MM/DD/YYYY formats. It's placed in the left corner on the bottom of the page:
image

The only concern I have that this broke the usage of podman, I failed to get the command working probably due to git access or I'm not sure, so it seems we'll need the help of @LKHN here.

The commands that helped me check this locally:

export NODE_OPTIONS=--openssl-legacy-provider
npx vuepress dev docs

@pastalian
Copy link

If you want it to just work, you can install git and mount the .git directory to /wiki/.git, along with a special environment variable. That said, this is not the cleanest solution.

# Containerfile
ENV GIT_DISCOVERY_ACROSS_FILESYSTEM=1
RUN apk add git
podman run --name wiki_dev --rm -i -t -p 8080:8080 \
  -v "$(pwd)"/docs:/wiki/docs:ro,z \
  -v "$(pwd)"/.git:/wiki/.git:ro,z \
  localhost/wiki_dev

@bennyvasquez
Copy link
Member

bennyvasquez commented Feb 5, 2025

hey @alaurie - am I remembering correctly you were thinking about some kind of auto-deployment thing for the wiki like you and @codyro were working on for the website? Is this something that might fit into that?

@alaurie
Copy link
Contributor

alaurie commented Feb 6, 2025

Possibly, we were looking at adding devcontainer support for it, which would be in Docker. This would be to automate the dev environment and allow the use of codespaces on Github.

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.

4 participants