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

Add contributor listing #250

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ sed -i "s|working-directory:\s*'\.'|working-directory: '$install_directory'|g" "
echo "Updating .readthedocs.yaml configuration..."
sed -i "s|configuration:\s*sp-docs/conf\.py|configuration: $install_directory/conf.py|g" "$temp_directory/sp-files/.readthedocs.yaml"
sed -i "s|requirements:\s*sp-docs/\.sphinx/requirements\.txt|requirements: $install_directory/.sphinx/requirements.txt|g" "$temp_directory/.readthedocs.yaml"
echo "Updating conf.py configuration..."
if [ "$install_directory" == "." ]; then
sed -i "s|'github_folder':\s*'/sp-docs/'|'github_folder': '/'|g" "$temp_directory/sp-files/conf.py"
else
sed -i "s|'github_folder':\s*'/sp-docs/'|'github_folder': '/$install_directory/'|g" "$temp_directory/sp-files/conf.py"
fi

# Create the specified installation directory if it doesn't exist
if [ ! -d "$install_directory" ]; then
Expand Down
2 changes: 1 addition & 1 deletion sp-files/.sphinx/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
canonical-sphinx
git+https://github.com/canonical/canonical-sphinx@main#egg=canonical-sphinx
sphinx-autobuild
10 changes: 5 additions & 5 deletions sp-files/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

# Change to the folder that contains the documentation
# (usually "/" or "/docs/")
'github_folder': '/',
'github_folder': '/sp-docs/',

# Change to an empty value if your GitHub repo doesn't have issues enabled.
# This will disable the feedback button and the issue link in the footer.
Expand All @@ -109,11 +109,11 @@
# Valid options: none, prev, next, both
# 'sequential_nav': "none",

# Controls whether to display the contributors for each file
# "display_contributors": True,
# Uncomment to disable displaying the contributors for each file.
# (You can also limit the time frame for displaying contributors
# by setting a "display_contributors_since" variable.)
# "display_contributors": False,

# Controls the time frame for showing the contributors
# "display_contributors_since": ""
}

# If your project is on documentation.ubuntu.com, specify the project
Expand Down
Loading