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

[Bug]: Gives me an error code when I try to upload, but creates branch on GitHub? #273

Closed
3 tasks done
aseyedia opened this issue Jan 17, 2024 · 2 comments
Closed
3 tasks done
Assignees
Labels
🐛 Bug Something isn't working

Comments

@aseyedia
Copy link

aseyedia commented Jan 17, 2024

Issue validation

  • I checked the issue to prevent duplicate
  • I checked my configurations files and the documentation
  • My issue concern doesn't concern the Mkdocs template

Command used

Upload all notes

Plugin version

6.13.1

Describe the bug

Where do I begin? I am sure this is one of these issues where I am having trouble grasping how to use this tool, so let me describe what my intention is.

I would like to configure this plugin to upload notes to a non-default repo. I do not presently have a default repo defined. That is because, like many people, I use Obsidian for many different things, and I would like to isolate my current, desired use of this plugin from future use of this plugin. What I mean is that I would like to use this plugin to upload and host all of my notes for my master's program without making that my default repo for my entire vault.

Here is my issue.

image

I have not created the repo mkdocs-template. Instead, I have defined an alternate repo with shortKey uiuc.

image

When I hit "Test Connection," I get the response "Seems Valid!"

However, the bottom bar never accurately reflects the number of files marked for sharing. I am trying to get this to work with just one file.

image

When I do either "upload all notes" or "upload all notes {project}", I get the following error:

image

But then when I go to the GitHub repo online, it shows that there is a new branch of my repo with today's date and the files uploaded:

image

image

At this point, I'm not sure what to do. All I would like to do is to define the repo via shortRepo: uiuc and mark it for sharing via share: true, and then I would like for the files to be uploaded and automatically merged with main, or preferably committed directly to main. I have "automatically merge" set when I generated the website. I am also not sure why there are 4 "0 Files marked for sharing" fields at the bottom of my screen. All settings are based on the mkdocs preset.

How to reproduce ?

No response

Minimal Reproducible Example

---
tags: Career/Data/UIUC_MCS
_filters: []
_contexts: []
_links: []
_sort:
  field: rank
  asc: false
  group: false
sticker: emoji//1f3eb
shortRepo: uiuc  
repo:  
owner: aseyedia  
repo:  
branch: main  
autoclean: true  
copylink:  
base: https://aseyedia.github.io/
---
test

Configuration

{
  "github": {
    "branch": "main",
    "automaticallyMergePR": true,
    "api": {
      "tiersForApi": "Github Free/Pro/Team (default)",
      "hostname": ""
    },
    "workflow": {
      "name": "",
      "commitMessage": "[skip netlify] PUBLISHER"
    },
    "tokenPath": ".obsidian/plugins/obsidian-mkdocs-publisher/env"
  },
  "upload": {
    "behavior": "yaml",
    "subFolder": "",
    "defaultName": "docs/hidden",
    "rootFolder": "docs",
    "yamlFolderKey": "category",
    "frontmatterTitle": {
      "enable": true,
      "key": "name"
    },
    "replaceTitle": [],
    "autoclean": {
      "enable": true,
      "excluded": [
        "docs/assets/js",
        "docs/assets/meta",
        "docs/assets/css",
        "tags.md",
        "graph.md"
      ]
    },
    "folderNote": {
      "enable": true,
      "rename": "index.md"
    },
    "metadataExtractorPath": "",
    "replacePath": []
  },
  "conversion": {
    "hardbreak": false,
    "dataview": false,
    "censorText": [],
    "tags": {
      "inline": true,
      "exclude": [],
      "fields": []
    },
    "links": {
      "internal": true,
      "unshared": false,
      "wiki": false
    }
  },
  "embed": {
    "attachments": true,
    "keySendFile": [
      "image"
    ],
    "notes": true,
    "folder": "docs/assets/img"
  }
}

Relevant log output

image

OS

IOS

Anything else?

No response

Obsidian information

SYSTEM INFO:
	Obsidian version: v1.5.3
	Installer version: v1.4.16
	Operating system: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 23.2.0
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: none
	Snippets enabled: 2
	Restricted mode: off
	Plugins installed: 47
	Plugins enabled: 42
		1: Periodic Notes v0.0.17
		2: Calendar v1.5.10
		3: Tasks v5.5.0
		4: Tracker v1.13.1
		5: Dataview v0.5.64
		6: Advanced Tables v0.20.0
		7: Kindle Highlights v1.9.2
		8: Banners v1.3.3
		9: TimeStamper v1.3.0
		10: Templater v1.18.3
		11: Tag Wrangler v0.6.1
		12: Reminder v1.1.15
		13: MAKE.md v0.8.18
		14: Better Word Count v0.10.0
		15: Table of Contents v0.2.0
		16: Linter v1.22.0
		17: Google Calendar v1.10.14
		18: Google Photos v1.6.5
		19: Note Refactor v1.8.2
		20: Copy Block Link v1.0.4
		21: Footnote Shortcut v0.1.3
		22: Obsidian Enhancing Export v1.9.6
		23: Advanced URI v1.38.1
		24: TagMany v0.2.7
		25: Dictionary v2.22.0
		26: Booksidian v0.3.7
		27: File Tree Alternative Plugin v2.4.6
		28: Homepage v3.6.0
		29: Waypoint v1.4.0
		30: AidenLx's Folder Note - folderv component v1.0.0
		31: Folder Note Core v1.3.5
		32: Quick Latex for Obsidian v2.6.4
		33: Excalidraw v2.0.16
		34: Buttons v0.4.19
		35: QuickAdd v1.6.1
		36: Regex Find/Replace v1.2.0
		37: Annotator v0.2.11
		38: Show Current File Path v0.5.2
		39: Convert url to preview (iframe) v0.5.0
		40: Github Publisher v6.13.1
		41: Metacopy v1.9.2
		42: Metadata Menu v0.7.7

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
@aseyedia aseyedia added the 🐛 Bug Something isn't working label Jan 17, 2024
@Mara-Li
Copy link
Member

Mara-Li commented Jan 17, 2024

You forgot to set the repository in your plugin settings. You set it in the other repository, but not as a main repository. Looks, it's is empty, as you can see the placeholder in a little opacity and italic

image

@aseyedia
Copy link
Author

Thank you! I was hoping to use this plugin without having to set a default repo, but I guess I will do this for now until I later decide to change things up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants